我用PyCharm升级python3.8中的pip20.1.1到20.2.2,提示报错。
我用PyCharm升级python3.8中的pip20.1.1到20.2.2,提示报错。我是用的Liunx系统,请问各位大佬,这该怎么弄呢?以前升级都没出现过这个问题。
Executed command:
pip install -U pip==20.2.2
Error occurred:
ERROR: Could not find a version that satisfies the requirement pip==20.2.2 (from versions: none)
Proposed solution:
Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at '/usr/local/bin/python3.8'.
Command output:
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("Can't connect to HTTPS URL because the SSL module is not available.")) - 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("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
ERROR: Could not find a version that satisfies the requirement pip==20.2.2 (from versions: none)
ERROR: No matching distribution found for pip==20.2.2
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
前段时间我也遇到的问题,后面解决了,按照这个帖子来:
Python FAQ 044 pip安装出现WARNING: ... require TLS/SSL 警告,导致无法正常安装
https://fishc.com.cn/thread-175728-1-1.html
(出处: 鱼C论坛)
页:
[1]