Wednesday, November 6, 2013

Set proxy for python and easy_install downloading on mac

If you get an error when using easy_install or "python ez_setup.py" behind a proxy as
"nodename nor servname provided, or not known -- Some packages may not be found!", then you will need to add the proxy settings as below:

export http_proxy=http://proxy:8080

export https_proxy=http://proxy:8080

If you get an error of "Permission denied", then you will need to use sudo command, but for sudo with easy_install, it also requires to use -E option to preserve the proxy settings

sudo -E easy_install sqlalchemy==0.7.10

1 comment: