Trying to use py2exe, but python is not recognized

◇◆丶佛笑我妖孽 提交于 2019-11-29 18:24:10

Python just isn't on your path. If you indeed have Python 2.4, it should be C:\Python24\python.exe with the default installer.

Wherever the file is located, if you don't set Python's folder in your path, you will write the command as

C:\Python24\python.exe setup.py py2exe

(or whatever the correct path is).

Depending on how your installation was configured, you might be able to just do

setup.py py2exe

since Windows might automatically associate *.py files with Python.

You might want to also read "Finding the Python Executable" from the Python documentation.

You need to add python to your system path. This is done differently on different OSs. Instructions for most versions of Windows You need to add C:\Python24 or whereever python is on your computer.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!