项目场景:
Miniconda3 python3.9;pip 20.0+
由于使用代理服务时,pip豆瓣源就会出错,每次使用时都要关闭比较麻烦,故打算使用pip默认的官方源。
问题描述:
将pip恢复官方源后(简单删除之前配置的豆瓣源pip.ini文件),使用pip安装任何软件时出现问题,以pip install tensorflow为例。
Could not fetch URL https://pypi.org/simple/tensorflow/: There was a problem
confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443)
: Max retries exceeded with url: /simple/tensorflow/ (Caused by SSLError
(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1123)'))) -
skipping
ERROR: Could not find a version that satisfies the requirement tensorflow
ERROR: No matching distribution found for tensorflow