Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error Installing PyInstaller for Python 3.7 on Windows 10

I used the command pip install pyinstaller to installer PyInstaller for Python 3.7 on Windows 10, but the Command Prompt gave me the following errors:

ModuleNotFoundError: No module named 'pywintypes'
...
ModuleNotFoundError: No module named 'cffi'
...
During handling of the above exception, another exception occurred:
...
SyntaxError: invalid syntax
----------------------------------------`

Command "python setup.py egg_info" failed with error code 1 in C:\Users\MUHAMM~1\AppData\Local\Temp\pip-install-6_q2lzs2\pyinstaller\

I installed the midule cffi, then tried to install pywintypes but it was not found.

Any help? Thanks in advance.

like image 315
Mohamed Avatar asked Mar 04 '26 19:03

Mohamed


2 Answers

I got that problem. The solution was

python -m pip install pip==18.1

then just

python -m pip install -U pyinstaller
like image 162
Luarto Avatar answered Mar 06 '26 09:03

Luarto


UPDATE as of 2019-07-09

The changelog for PyInstaller==3.5 does state that they now support Python 3.7 on Windows 10. I updated my answer to account for several necro-bumps "it works now", "the second answer should be accepted" and "downvotes" disregarding the time at which the question was asked. The second answer was not the actual solution back then, it clearly fails to state that

pip3.7 install PyInstaller==3.5

is a solid fix since 2019-07-09. The question however was asked long before that date.


BEFORE 2019-07-09

Not a solution to your problem, but PyInstaller does not support Python 3.7.

like image 26
tahesse Avatar answered Mar 06 '26 10:03

tahesse



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!