Skip to content

Instantly share code, notes, and snippets.

@didip
Created March 12, 2012 00:25
Show Gist options
  • Save didip/2018847 to your computer and use it in GitHub Desktop.
Save didip/2018847 to your computer and use it in GitHub Desktop.
What to do after upgrading Python
cd /tmp
# fix pip
curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
sudo python /tmp/get-pip.py
# Fix setuptools
# Download the appropriate .egg from here: http://pypi.python.org/pypi/setuptools
curl -O http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg#md5=fe1f997bc722265116870bc7919059ea
sudo python /tmp/setuptools-0.6c11-py2.7.egg
# Fix distribute
curl -O http://python-distribute.org/distribute_setup.py
sudo python distribute_setup.py
@built
Copy link

built commented Mar 12, 2012

You can pip install distribute!

@didip
Copy link
Author

didip commented Mar 12, 2012

That's right! Much simpler that way.

The gist is pretty much "What should I do if I only have shell and default python".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment