You can enter proxy settings within pip-Win, as follows :
pip install pyDatalog --proxy username:password@myproxy:myproxyport
where you replace username, password, myproxy
and myproxyport
by relevant data.
However, this assumes that your python interpreter already has pip properly installed. If this is not the case, you can create a .bat file that will launch pip-Win with appropriate proxy settings, as follows:
pipwin.bat
file in the directory where you downloaded pip-Win, with the following content. set HTTP_PROXY=http://DOMAIN\username:password@myproxy:myproxyport
set HTTPS_PROXY=https://DOMAIN\username:password@myproxy:myproxyport
path\to\python.exe path\to\get-pip.py
path\to\pip-win_1.6.exe
set HTTP_PROXY=http://
192.168.0.40:8080
set HTTPS_PROXY=https://192.168.0.40:8080
c:\python27\python.exe c:\downloads\get-pip.py
c:\python\pip-win_1.6.exe
Important Caveats
upgrade
command, as it may break pip.You don't need to repeat your proxy settings when issuing pip install xyz
commands.
If you do not want to have your username and password stored in the batch file, which is understandable, you can type the commands above in a DOS command prompt. However, you'll have to re-type all 3 statements whenever you want to start pip-Win.