当前位置: 动力学知识库 > 问答 > 编程问答 >

python - How to set pip --cert permantently

问题描述:

I know from this answer that I can set a trusted/proxy cert each time I call pip, but I can't find a way to set this as a permanent variable.

On this page it says I should be able to set some config variables in the pip.ini file, but I do not have one in the user AppData folder.

There was some discussion about this issue, but it reads like at this point I should just need to make sure opensll, which, far as I can tell, is up to date. The issue focused on Ubuntu, but I would assume it would have been a fairly broad fix.

So, to be clear, pip --cert <location of pem file> install something works, but I'd like to avoid having to include the cert location every time.

I am using Anaconda 2.7 on Windows 7, if that helps.

As a fall back to using the system certificates, I have been able to do something similar for git using git config --global http.sslCAInfo <location of crt/pem file>

分享给朋友:
您可能感兴趣的文章:
随机阅读: