繁体   English   中英

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

[英]cannot install any packages in PyCharm

我试图在 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 install auto-py-to-exe --trusted-host pypi.org --trusted-host files.pythonhosted.org

然后它显示“找不到满足 auto-py-to-exe 要求的版本(来自版本:)没有为 auto-py-to-exe 找到匹配的发行版”

所以我试图给它一个版本命令:(base) C:>pip install auto-py-to-exe from versions 2.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

然后我出去了......所以如果有人有任何想法,请帮忙。 非常感谢。

按照以下https://datatofish.com/upgrade-pip/升级您的 pip。

您也可以尝试手动安装:( https://pip.pypa.io/en/stable/installing/

下载: https://bootstrap.pypa.io/get-pip.py

python get-pip.py

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM