在我发布这篇文章时,pyInstaller.org 网站似乎已关闭。
我正在尝试为 python3 安装程序 pyInstaller。我都试过了:
"c:\python34\scripts\easy_install.exe"pyInstaller "c:\python34\scripts\pip.exe"安装pyInstaller
但两者都给出:
PyInstaller\compat.py", line 129
if sys.maxint > 2L ** 32:
^
SyntaxError: invalid syntax
适用于 python27 pyInstaller 与 python3 不兼容吗?如果没有,我应该如何为 Windows 制作我的 pyqt5 脚本的独立应用程序?
最佳答案
PyInstaller 2.1 尚不兼容 Python 3.x。您需要切换到 Python 2.x 或等到项目与 Python 3.x 兼容,您可以在 PyPI 上查看页面,因为它应该更新分类器,将其标记为“Python 3.x”兼容。目前的标签是:
Programming Language :: Python
Programming Language :: Python :: 2
Programming Language :: Python :: 2.4
Programming Language :: Python :: 2.5
Programming Language :: Python :: 2.6
Programming Language :: Python :: 2.7
Programming Language :: Python :: 2 :: Only
关于python - pyInstaller 没有为 python3 安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26215685/