首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在PyCharm中安装任何软件包

无法在PyCharm中安装任何软件包
EN

Stack Overflow用户
提问于 2020-07-20 11:00:03
回答 1查看 416关注 0票数 3

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

我使用pip安装了一些包,但它无法工作并显示:

代码语言:javascript
复制
(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,但是这里仍然显示了同样的问题:

代码语言:javascript
复制
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

那我就退出..。因此,如果任何人有任何想法,请帮助。非常感谢。

EN

回答 1

Stack Overflow用户

发布于 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

代码语言:javascript
复制
python get-pip.py
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/62988015

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档