Skip to content

Instantly share code, notes, and snippets.

@wbhinton
Created December 13, 2019 20:07
Show Gist options
  • Save wbhinton/196d98f289b713cc0b504d42696a952e to your computer and use it in GitHub Desktop.
Save wbhinton/196d98f289b713cc0b504d42696a952e to your computer and use it in GitHub Desktop.
Install python packages behind a firewall

Install python packages behind a firewall

PIP

add filed named pip.ini in a folder in your home directory (~/pip/pip.ini) or name it pip.conf if .ini doesn't work Add the following lines to the file

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

Conda

Before trying to install any conda package execute this in Anaconda Shell or a unix terminal

conda config --set ssl_verify no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment