使用pip install openpyxl时出现错误:
Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/openpyxl/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.tuna.tsinghua.edu.cn', port=443): Max retries exceeded with url: /simple/openpyxl/(Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)'),)) - skipping
Could not find a version that satisfies the requirement openpyxl (from versions: )
No matching distribution found for openpyxl
添加信任主机选项,重新执行pip:
pip --trusted-host pypi.tuna.tsinghua.edu.cn install openpyxl
当使用pip安装openpyxl时遇到SSL证书验证失败的问题,本文介绍了一种通过添加信任主机选项来解决该问题的方法。只需在pip命令中加入--trusted-host参数,指定信任的主机地址即可。
323





