python:使用pip安装openpyxl报错,网上找的文章很有用,记录一下

时间:2024-03-22 08:56:31

使用pip install openpyxl老是报错,详见下图:
python:使用pip安装openpyxl报错,网上找的文章很有用,记录一下
Could not fetch URL https://pypi.org/simple/openpyxl/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘pypi.org’, port=443): Max retries exceeded with url: /simple/openpyxl/ (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)’))) - skipping

网上找的资料附上网址提供的解决方案是:使用命令python -m pip install xlsxwriter --trusted-host=pypi.python.org --trusted-host=pypi.org --trusted-host=files.pythonhosted.org

转载:https://www.cnblogs.com/mumuluo/p/11308468.html