python command not working

sam.heyman at gmail.com sam.heyman at gmail.com
Fri Aug 14 07:13:14 EDT 2015


On Wednesday, April 22, 2009 at 8:36:21 AM UTC+1, David Cournapeau wrote:
> On Wed, Apr 22, 2009 at 4:20 PM, 83nini <83nini at gmail.com> wrote:
> > Hi guys,
> >
> > I'm new to python, i downloaded version 2.5, opened windows (vista)
> > command line and wrote "python", this should take me to the python
> > command line, but it did not! i'm getting : python is not an internal
> > command, external command, program, or command file.
> 
> The installer does not add the path of python into your %PATH%
> variable, You have to do it manually or call the full command path
> (C:\Python25\python.exe or something)
> 
> David


You can do it easily by adding the Python path (in my case C:\Python27) to your system PATH.

Simply go to Control Panel > System > Advanced system settings, select 'Advanced' tab, click 'Environment Variables'.

There you need to add the path to Python (C:\Python27) to the Path BOTH:
- User variables
and
- System variables
For each one click 'Edit' and paste the path (C:\Python27) at the end of the line with a ';' to separate it

Restart your shell window and it should work!



More information about the Python-list mailing list