我是在使用一台Windows公司电脑。我有自己的索引,托管在https网站上。我知道可以使用trusted-host
避免使用https,但我想使用它。
我正在尝试安装以下软件包:
pip install -i https://pathtoindex/simple/ pkgname
但是我遇到了以下错误:
Could not fetch URL [...] There was a problem confirming the ssl
certificate: [SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed (_ssl.c:590) - skipping
我曾尝试从Mozilla下载我的域名的.pem证书文件,我使用了以下命令:
pip --cert dirtocert/cert.pem install -i https://pathtoindex/simple/ pkgname
这个也不行,仍然会出现相同的错误。