Skip to content Skip to sidebar Skip to footer

Pip Install Tls Ca Issue

Every time I try to pip install something, this happens: Lucianos-Mac:test luciano$ pip install torch Collecting torch Could not install packages due to an EnvironmentError: Could

Solution 1:

Delete (or edit) these two files:

/Users/<user>/Library/LaunchAgents/setenv.CURL_CA_BUNDLE.plist
/Users/<user>/Library/LaunchAgents/setenv.SSL_CERT_FILE.plist

In the same folder NextGIS puts three other files that are setting ENV variables. I think they also should be taken care of.

Solution 2:

You can trace the environment variable to wherever it gets set by:

$ PS4='+$BASH_SOURCE> 'BASH_XTRACEFD=7 bash -xl 2> ~/desktop/trace.log ; reset

Followed by Control + C

Then issue the following command:

$ grep REQUESTS_CA_BUNDLE ~/desktop/trace.log

It should return the location of where it's getting set within your environment.

Solution 3:

I had this problem after a failed attempt to install Docker. The process did have something to do with ca-certificates. So I install the package with

sudo apt install ca-certificates

and voila, things get back to normal again. Hope this help.

Post a Comment for "Pip Install Tls Ca Issue"