Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:997)'))) - skipping Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:997)'))) - skipping WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:997)'))': /simple/pip/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:997)'))': /simple/pip/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:997)'))': /simple/pip/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:997)'))': /simple/pip/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:997)'))': /simple/pip/ ERROR: Could not find a version that satisfies the requirement pip==23.1.2 (from versions: none) ERROR: No matching distribution found for pip==23.1.2 WARNING: There was an error checking the latest version of pip.
时间: 2023-10-24 10:03:25 浏览: 300
python pip3 出现 HTTPSConnectionPool(host=’pypi.org’, port=443)
这个错误通常是由于网络连接问题或证书验证问题导致的。你可以尝试以下方法来解决这个问题:
1. 检查你的网络连接是否正常工作。可以尝试使用不同的网络连接或者重启你的网络设备。
2. 检查你的证书是否过期或无效。可以尝试更新你的证书或使用不同的证书。
3. 尝试使用不同的包管理器或者下载pip包的源地址。你可以尝试使用清华镜像源或者其他可靠的源地址来下载pip包。
4. 尝试使用命令行参数 --trusted-host 来跳过证书验证。这个方法并不安全,你需要自行权衡风险。
如果以上方法都不能解决问题,你可以尝试联系pip官方支持或者寻求其他技术支持。
阅读全文