Friday, November 25, 2011

How to use easy_install through a proxy

You first need to make sure that the shell variable http_proxy is defined:
$ env | grep http_proxy

On this done you can run simply run easy_install as follow:
sudo -E easy_install your_package
The "-E" parameter for sudo preserves your environment (namely variables) which is not the default behavior.