错误信息: https://pypi.org/simple/django/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘pypi.org’, port=443): Max retries exceeded with url: /simple/django/ (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)’))) - skipping
解决方案:可能是 ssl 证书没有认证。通过信任可以解决。
pip --trusted-host pypi.python.org install 想要安装的包
python -m pip install 想要安装的包 --trusted-host=pypi.python.org --trusted-host=pypi.org --trusted-host=files.pythonhosted.org