使用镜像源和trust-host解决:Could not fetch URL https://pypi.org/simple/xxxx/

pip install xxx包报错:

Could not fetch URL https://pypi.org/simple/xxxx/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/cleanlab/ (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1125)'))) - skipping
ERROR: Could not find a version that satisfies the requirement cleanlab
ERROR: No matching distribution found for cleanlab

解决方法,使用镜像源和trust-host:

Pip install xxxx -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
上一篇:C#随机颜色和随机字母


下一篇:错误解决:Could not install packages due to an EnvironmentError