我尝试在PyCharm中安装python包。但是我看不到任何最新的版本,如下:

我使用pip安装了一些包,但它无法工作并显示:
(base) C:\>pip install auto-py-to-exe
Collecting auto-py-to-exe
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1045)'))': /simple/auto-py-to-exe/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1045)'))': /simple/auto-py-to-exe/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1045)'))': /simple/auto-py-to-exe/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1045)'))': /simple/auto-py-to-exe/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1045)'))': /simple/auto-py-to-exe/
Could not fetch URL https://pypi.org/simple/auto-py-to-exe/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/auto-py-to-exe/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1045)'))) - skipping然后我尝试使用受信任的主机cmd:
(基础) C:>pip安装auto-py-to-exe --可信主机pypi.org --可信主机files.pythonhosted.org
然后显示“找不到满足要求auto-py-to-exe的版本(来自版本:)没有为auto-py-to-exe找到匹配的发行版”
所以我试着给它一个版本命令:(base) C:>pip install auto-py- to -exe from version2.7.5 --trusted-host pypi.org --trusted-host files.pythonhosted.org,但是这里仍然显示了同样的问题:
Collecting auto-py-to-exe
Could not find a version that satisfies the requirement auto-py-to-exe (from versions: )
No matching distribution found for auto-py-to-exe那我就退出..。因此,如果任何人有任何想法,请帮助。非常感谢。
发布于 2020-07-20 12:17:07
按照以下https://datatofish.com/upgrade-pip/升级您的pip。
您也可以尝试手动安装:(https://pip.pypa.io/en/stable/installing/)
下载:https://bootstrap.pypa.io/get-pip.py
python get-pip.pyhttps://stackoverflow.com/questions/62988015
复制相似问题