问题描述:
pip安装yaml报如下错误:
‘Could not fetch URL https://pypi.org/simple/pathlib/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘pypi.org’, port=443): Max retries exceeded with url: /simple/pathlib/ (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 pathlib (from versions: none) ERROR: No matching distribution found for pathlib’
解决办法
是因为这个打开这个网站‘ https://pypi.org’报了安全问题 我们在pip命令上加上–trusted-host 参数即可
pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org pyyaml
|