Telling Windows where to find Python

From Phycas
Revision as of 03:04, 5 August 2008 by Phycasadm (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Determining whether or not there is a problem

Open a console window (Start, All Programs, Accessories, Command Prompt) and type python. If you get the Python prompt (i.e. >>>), then all is well. If instead you get something like this

'python' is not recognized as an internal or external command,
operable program or batch file.

then you have a problem. The first thing to do is reboot. If that does not solve the problem, then you can add the path to the Python executable to your Windows PATH. To do this, choose Start, Control Panels, the System to open the System control panel. Click the Advanced tab, then click the Environment Variables button. Double-click the environmental variable named PATH (either in the upper or lower panel) and add the following at the end of the text labeled ``Variable value

;C:\Python25

(Be careful to add the above text at the end and do not erase any existing text!) After pressing Ok twice to close the open dialog boxes, you should be able to now start python at any Windows command prompt.