Proxy awareness with pip

pip doesn't work if you are using a proxy server for installing packages. To fix it: Go to control panel -> Internet options -> Connections ->LAN Settings ->Unmark 'use proxy server' options. Try using pip after this, it should work. You can start using proxy server after installing the package.


If you know your proxy information, you can pass that to your command line:

pip install --proxy=user:pass@server:port numpy

A full string could be something as simple as:

pip install --proxy=http://proxy.example.com numpy

Where proxy.example.com is your (corporate) proxy server. You only need to pass user:pass and port if the proxy also requires that information.

Tags:

Python

Proxy

Pip