我试图在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 --trusted-host pypi.org --trusted-host files.pythonhosted.org
然后显示“找不到满足auto-py-to-exe要求的版本(来自版本:) 找不到与py-to-exe匹配的分布”
所以我试图给它一个版本命令: (基本)C:> pip从2.7.5版本开始自动安装py-to-exe---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
那我出去了...所以,如果有人有什么想法,请帮忙。非常感谢。
答案 0 :(得分:0)
按照以下https://datatofish.com/upgrade-pip/升级您的点数。
您还可以尝试手动安装:(https://pip.pypa.io/en/stable/installing/)
下载:https://bootstrap.pypa.io/get-pip.py
original: [[0, 0, 0, 0, 0], [0, 1, 2, 3, 4], [0, 2, 4, 6, 8], [0, 3, 6, 9, 12], [0, 4, 8, 12, 16]]
withtotals:[[0, 0, 0, 0, 0, 0], [0, 1, 2, 3, 4, 10], [0, 2, 4, 6, 8, 20], [0, 3, 6, 9, 12, 30], [0, 4, 8, 12, 16, 40]]