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

735 Views Asked by At

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?

1

There are 1 best solutions below

1
On

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