Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pyInstaller not installing for python3

The pyInstaller.org website appears to be down while I make this post.

I'm trying to installer pyInstaller for python3. I've tried both:

"c:\python34\scripts\easy_install.exe" pyInstaller "c:\python34\scripts\pip.exe" install 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? If not, how should I make a standalone app of my pyqt5 scripts for windows?

like image 402
Baz Avatar asked Oct 21 '22 00:10

Baz


2 Answers

PyInstaller 2.1 is not yet compatible with 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. 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
like image 92
Simeon Visser Avatar answered Oct 27 '22 22:10

Simeon Visser


An experimental branch on GitHub has been published that works with Python 3.

Just download or clone that and run.

Alternatively, use this fork, which fixes some bugs, e.g. --version-file=... support and PyQt5 multimedia support and print services.

like image 39
Arc Avatar answered Oct 27 '22 21:10

Arc