python - pyInstaller 没有为 python3 安装

标签 python python-3.x pip pyinstaller pyqt5

在我发布这篇文章时,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/

相关文章:

python - python对象的自定义过滤函数

python - 将对象附加到列表时删除引号

python - pyCuda,发送多个单变量参数的问题

python - 了解全局名称和 Python2 和 3

python - pip:使用 sudo 或不使用 sudo

python - 来自字典的DataFrame

python - 将功能应用于 Pandas 数据框中的组

python - 以时间间隔连续安排脚本

python - 如何在 Python 3.x 和 Python 2.x 中使用 pip

python - pip:找不到命令