pyinstaller No module named pyinstaller pyinstaller No module named pyinstaller python python

pyinstaller No module named pyinstaller


Their package name have caps in it (not sure if it's very PEP8 tho..). This should work if you can't find the pyinstaller executable script:

python -m PyInstaller your_script.py 


I had same issue here, and i tried everything, but finally i found the solution :

enter image description here

I had to downgrade pip from version 19 to 18.1 :

pip install pip==18.1

Then install PyInstaller :

pip install pyinstaller

.

As you see i managed to install it :enter image description here.

After that you can upgrade your pip again :

python -m pip install --upgrade pip


PyInstaller is case sensitive when being executed from the python3 - m method.You need to run it as follows.


python3 -m PyInstaller yourscript.py


If you want directly execute from the terminal you need to install it as follows.


python3 -m pip install pyinstaller or pip3 install pyinstaller


Following that, you need to set your global python executable to python3.


pyinstaller yourscript.py