Sunday, 4 September 2011

How to install Python for Windows

Installing Python 2.7 for Windows 7 is quite simple when using the installer.

Because I'm used to working with the Terminal, I wanted to have something similar in Windows, which is possible with cmd.exe and the newer Powershell. Powershell comes standard with Windows 7 and can be downloaded here for Windows XP.

In order to call python, a system environment variable has to be set:

Windows 7:

  1. Go to Control Panel > System > Advanced System Settings
  2. Environment Variables
  3. Add ;C:/python27 to the end of the "path" system variable (or whatever the path to your python.exe is)

Alternatively, cygwin is a terminal/bash port for Windows, which might be even easier to use.

No comments:

Post a Comment