未在 Mac 上安装的 Python 软件包

时间:2021-07-31 20:24:35

标签: python pip

我在 Catalina 上的 MacBook Air 13' 上使用 PyCharm 使用 python 3.8.3 进行编码。我一直在尝试使用 pip 21.1.3 将包安装到项目中,但是,这种情况不断出现:

Could not fetch URL https://pypi.org/simple/audioplayer/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/audioplayer/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)'))) - skipping
ERROR: Could not find a version that satisfies the requirement audioplayer (from versions: none)
ERROR: No matching distribution found for audioplayer
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)'))) - skipping

我不知道这意味着什么或如何解决它。有人可以帮忙吗?

1 个答案:

答案 0 :(得分:2)

这看起来像是网络错误,请尝试添加:

pip3 install  --trusted-host pypi.org <your package>

可能你有什么东西阻止了访问