解决【ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host=‘files.python...】
Q安装python依赖:python -m pip install -r requirements.txt报错如下:ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with u
·
Q
安装python依赖:
python -m pip install -r requirements.txt
报错如下:
ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/48/ef/c72abcfa2c6accd03e7c89c400790fc3d908c5804d50a7c4e9ceabd74d23/pyjsparser-2.7.1.tar.gz (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate is not yet valid (_ssl.c:1076)')))
A
命令修改为:
python -m pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org -r requirements.txt
安装正常:
更多推荐
已为社区贡献2条内容
所有评论(0)