Skip to content

Instantly share code, notes, and snippets.

@roblanf
Last active October 7, 2021 05:32
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roblanf/6929493 to your computer and use it in GitHub Desktop.
Save roblanf/6929493 to your computer and use it in GitHub Desktop.
Setting up Python 2.7 on Windows

Below is a method to install Python 2.7 on Windows, using the Python distribution from python.org. Please note that THERE ARE EASIER WAYS THAN THIS. E.g. you can use the Anaconda distribution, which is one click, and has a nice windows installer. To do that, ignore everything below and just click here:

http://www.continuum.io/downloads

If for some reason you want to do it the slightly harder way:

  1. Install Python ================= Download the Python installer from here: http://www.python.org/getit/. Make sure you download version 2.7. The instructions that follow assume you have installed python in its default folder, which is c:\Python27.

  2. Update your "PATH" ===================== Once python is installed you’ll need to update your “PATH”, so that your computer can find Python. How you do this depends on your operating system:

On Windows 7

  1. Select “Computer” from the Start menu

  2. Choose “System Properties” from the menu

  3. Click “Advanced system settings” (it’s on the left) then click the “Advanced” tab

  4. Click on “Environment Variables”, under “System Variables”, find “Path”, and click on it.

  5. Click “Edit…”, and add the text on the following line to the end of the Path in the box “Variable value”. Note that there should be no spaces anywhere at all:

;C:\Python27

then click “OK” and you’re done.

On Windows XP

  1. Click the “Start” menu, then “Control Panel” -> “System” -> “Advanced”

  2. Click on “Environment Variables”, under “System Variables”, find “Path”, and click on it.

  3. Click “Edit…”, and add the text on the following line to the end of the Path. Note that there should be no spaces anywhere at all:

;C:\Python27

then click “OK” and you’re done.

On Windows Vista

  1. Right click “My Computer” icon

  2. Choose “Properties” from the menu

  3. Click “Advanced” tab (it might also be called “Advanced system settings”)

  4. Click “Edit…”, and add the text on the following line to the end of the Path. Note that there should be no spaces anywhere at all:

;C:\Python27

then click “OK” and you’re done.

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