繁体   English   中英

我无法使用 pip 安装任何 package

[英]I cannot install any package using pip

我正在尝试使用 python 安装软件包pip install numpy ....并且总是以这个错误结束:

Could not fetch URL https://pypi.org/simple/numpy/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/numpy/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)'))) - skipping

ERROR: Could not find a version that satisfies the requirement numpy (from versions: none)
ERROR: No matching distribution found for numpy......

在此处输入图像描述 我已经禁用了我的防病毒软件...并关闭了我的防火墙..但仍然无法正常工作!

请帮忙.....提前谢谢:)

我您可以使用以下命令,它将下载特定的依赖项而不会出现任何问题。 请在 <package_name> 中指定 package 名称。 这对我来说可以。

pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org <package_name>

暂无
暂无

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

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