tags:

views:

62

answers:

3

I tried all the steps in this tutorial.

Yet I keep geting this ouput

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

when I run

python setup.py py2exe

in command prompt

What am I doing wrong?

+3  A: 

python.exe is missing in your path. Try to reinstall Python with admin rights or manually add C:\PythonXX\ to your path.

leoluk
Remember to close and re-open the command prompt too after setting the PATH environment variable.
Brian R. Bondy
Close and re-open the command prompt not always works, best is to re-login to Windows.
leoluk
A: 

the above answer should work but its sometimes especially on a computer with locked down privileges that don't let you mess with path to just use a batch script or even a gui such as GUI2EXE

Hugoagogo
+1  A: 

You can also just type out the full path to Python in the command prompt:

c:\pythonXX\python.exe setup.py py2exe
Mark