更新时间:2021-11-24 21:19:46
有两个以上的选项.您可以使用 py2exe、PyInstaller、cx_freeze 和 bb_freeze.我喜欢使用 GUI2Exe 包装器脚本,它包装了所有这些以及 py2app(适用于 Mac),因为它使调整设置变得轻而易举.
There are more than two options. You can use py2exe, PyInstaller, cx_freeze and bb_freeze. I enjoy using the GUI2Exe wrapper script that wraps all of these plus py2app (for Macs) as it makes tweaking the settings a breeze.
据我所知,cx_freeze、PyInstaller 和 bb_freeze 拥有最新版本,py2exe 是 2008 年的最后一个版本.
As far as I can tell, cx_freeze, PyInstaller and bb_freeze have the newest releases with py2exe's last release in 2008.
至于您的问题,听起来您的系统路径上没有 Python.尝试输入python的完整路径.像这样:
As for your issue, it sounds like you don't have Python on your system path. Try typing out the full path to your python instead. Something like this:
c:\python27\python.exe setup.py py2exe
我不知道Cylinderdrawer"是什么,但这不是 Windows 上 Python 可执行文件的标准位置.
I don't know what "Cylinderdrawer" is, but that is NOT a standard location for the Python executable on Windows.
另见: