Skip to content

Instantly share code, notes, and snippets.

@objarni
Last active December 15, 2015 07:09
Show Gist options
  • Save objarni/5221169 to your computer and use it in GitHub Desktop.
Save objarni/5221169 to your computer and use it in GitHub Desktop.
Lazy me likes to install pip on a windows machine with git-bash on it. Here's the rows!
# COMMAND PROMPT ENVIRONMENT
python -c "import urllib.request;open('distribute_setup.py', 'wb').write(urllib.request.urlopen('http://python-distribute.org/distribute_setup.py').read())"
python distribute_setup.py
python -c "import urllib.request;open('get-pip.py', 'wb').write(urllib.request.urlopen('https://raw.github.com/pypa/pip/master/contrib/get-pip.py').read())"
python get-pip.py
# GIT-MSYS ENVIRONMENT
curl -O http://python-distribute.org/distribute_setup.py
python distribute_setup.py
curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
python get-pip.py
# BOTH ENVIRONMENTS
# you want to add "<pythonpath>/Scripts" to PATH env variable to make PIP.EXE available from prompt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment