Reputation: 21
I'm using python2 and having trouble installing pyinstaller. Here's what I've tried:
root@host:~/setup# pip install pyinstaller
Collecting pyinstaller
Using cached https://files.pythonhosted.org/packages/82/96/21ba3619647bac2b34b4996b2dbbea8e74a703767ce24192899d9153c058/pyinstaller-4.0.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-6zdWWq/pyinstaller/setup.py", line 63
file=sys.stderr)
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-6zdWWq/pyinstaller/
Upvotes: 1
Views: 4626
Reputation: 698
From my understanding, Pyinstaller v4.0 does not support Python 2 which is what I assume is being downloaded when you use pip install pyinstaller
.
Solution:
Visit Pyinstaller Release History to view the version you would like to install (all versions from Python v3.6 down to v3.0 support Python 2)
Install the Pyinstaller version of your choice using: pip install pyinstaller==3.5
this should work for you!
Images below:
Upvotes: 5