Using Python in a Corporate Environment (aka Mordor)

These tricks will save you some sleep and hair.

alt

GIT

git config --global http.proxy http://MYPROXY.net:MYPORT

git config --global http.sslVerify false

Setting up Python

Install Python from windows installer

Add Python to Paths

Setting up Pip

Add to the file

On Unix the file may be located in /etc/pip.conf. Alternatively it may be in a “pip” subdirectory of any of the paths set in the environment variable XDG_CONFIG_DIRS (if it exists), for example /etc/xdg/pip/pip.conf.

On macOS the file is: /Library/Application Support/pip/pip.conf

On Windows XP the file is: C:\Documents and Settings\All Users\Application Data\pip\pip.ini

On Windows 7 and later the file is hidden, but writeable at C:\ProgramData\pip\pip.ini

Site-wide configuration is not supported on Windows Vista

[global]
trusted-host = pypi.python.org
               pypi.org
               files.pythonhosted.org
comments powered by Disqus