简体   繁体   English

pyInstaller没有为python3安装

[英]pyInstaller not installing for python3

The pyInstaller.org website appears to be down while I make this post. 当我发帖时,pyInstaller.org网站似乎关闭了。

I'm trying to installer pyInstaller for python3. 我正在尝试为python3安装pyInstaller。 I've tried both: 我试过了两个:

"c:\\python34\\scripts\\easy_install.exe" pyInstaller "c:\\python34\\scripts\\pip.exe" install pyInstaller “c:\\ python34 \\ scripts \\ easy_install.exe”pyInstaller“c:\\ python34 \\ scripts \\ pip.exe”安装pyInstaller

but both give: 但两者都给:

PyInstaller\compat.py", line 129
    if sys.maxint > 2L ** 32:
                     ^
SyntaxError: invalid syntax

Works fine for python27 Is pyInstaller not compatible with python3? 适用于python27是否pyInstaller与python3不兼容? If not, how should I make a standalone app of my pyqt5 scripts for windows? 如果没有,我应该如何制作一个针对Windows的pyqt5脚本的独立应用程序?

PyInstaller 2.1 is not yet compatible with Python 3.x. PyInstaller 2.1尚未与Python 3.x兼容。 You'll either need to switch to Python 2.x or wait until the project is compatible with Python 3.x, You can check that on the PyPI page as it should then have updated classifiers that mark it as "Python 3.x" compatible. 您需要切换到Python 2.x或等到项目与Python 3.x兼容,您可以在PyPI页面上检查它,因为它应该有更新的分类符,将其标记为“Python 3.x”兼容。 Currently the tags are: 目前标签是:

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

An experimental branch on GitHub has been published that works with Python 3. 已经发布了一个与Python 3一起使用的GitHub实验分支

Just download or clone that and run. 只需下载或克隆并运行即可。

Alternatively, use this fork , which fixes some bugs, eg --version-file=... support and PyQt5 multimedia support and print services. 或者, 使用此fork修复一些错误,例如--version-file=... support和PyQt5多媒体支持和打印服务。

Pyinstaller is compatible with python 3 but it should be instaled specifically for that version, the easy way is like this (windows/linux): Pyinstaller与python 3兼容,但它应该专门为该版本设置,简单的方法是这样的(windows / linux):

pip3 install pyinstaller

Put it in a CMD (windows) or in a terminal (linux). 把它放在CMD(windows)或终端(linux)中。 Note the pip3 . 请注意pip3 the python installation directory must be in the PATH enviroment variable for both (linux /windows) to be able to use pip. python安装目录必须在PATH环境变量中,两个(linux / windows)才能使用pip。

An easy way toget python libs in the PATH variable is checking the box shown below at the installer. 在PATH变量中获取python库的简单方法是在安装程序中选中下面显示的框。

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM