WARNING: This is unsafe!

One of the most annoying things is not being able to update software if you’re behind a network firewall that requires SSL verification. You can turn this off in Anaconda via

conda config --set ssl_verify no



and for pip via

pip install --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.org <package name>



Optionally, you can also specify the package version like this:

pip install --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.org <package name>[=0.1.2]



Better yet, you can permanently set the trusted-host by adding the following to the $HOME/.pip/pip.conf file:

[global]
trusted-host = pypi.python.org
               files.pythonhosted.org
               pypi.org



Alternatively, you can also temporarily disable SSL verification from the command line with:

PYTHONHTTPSVERIFY=0 pip install some_trusted_package_name



Do not use this code! –>


Published

Dec 23, 2015