Skip to content

Instantly share code, notes, and snippets.

@kennethreitz
Created August 5, 2010 15:12
Show Gist options
  • Save kennethreitz/509873 to your computer and use it in GitHub Desktop.
Save kennethreitz/509873 to your computer and use it in GitHub Desktop.
Python on windows sucks. This helps.

Proper Python in Windows

Prerequisites:

  • Python2.7 (x86) from Python.org
  • Microsoft Visual Studio

Step 1: Install Distribute & Pip

Distribute is a fantastic drop-in replacment for easy_install and setuptools. It allows you to install and manage python packages from PyPi, amongst a few other sources.

To install it, run the python script available here: http://python-distribute.org/distribute_setup.py

Make sure that C:\Python27\, and C:\Python27\Scripts are in your PATH.

easy_install is considered by many to be a deprecated system, so we will install it's replacment: pip. Pip allows for uninstallation of packages, and is actively maintained, unlike setuptool's easy_install.

To install pip, simply run:

easy_install pip
@adamramadhan
Copy link

wow windows, i thought you used a mac . :D

@kennethreitz
Copy link
Author

Of course I do. But others don't.

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