Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
394 views
in Technique[技术] by (71.8m points)

python - conda: pip fails in venv due to SSL verification problems - how to make it work as in base environment

If I create a virtual environment using venv and run pip I get WARNING: pip is configured with locations that require TLS/SSL,... although it works in the base environment. If the base and virtual environment are active (was by accident similar to (venv) (base) both active on a python project, how do I get into venv only?) it works without any complaints.

I sit behind a proxy server (Zscaler) so I have to point to the root certificate of the proxy. I added that as a comment in https://github.com/conda/conda/issues/9746#issuecomment-767043072. I added the package pyOpenSSL but it did not resolve the issue.

I suspect that is related is caused by the proxy server own root certificate. How can I make pip to behave the same way in the virtual environment as in the base environment?

question from:https://stackoverflow.com/questions/65891860/conda-pip-fails-in-venv-due-to-ssl-verification-problems-how-to-make-it-work

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Have you tried installing openssl from this https://slproweb.com/products/Win32OpenSSL.html


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...