pyinstaller No module named pyinstaller

做~自己de王妃 提交于 2019-12-04 00:29:19

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

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 :

.

After that you can upgrade your pip again :

python -m pip install --upgrade pip

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 

Right now the only way I found to make it works is to: navigate to:

/Library/Frameworks/Python.framework/Versions/3.5/bin

run pyinstaller mypython35script.py

cheers d.

ps I still don't know why is not working in the way I described in my first post.

I had the same trouble, so I tried to do as @mounirboulwafa says.

I had to downgrade pip from version 19 to 18.1 :
pip install pip==18.1

But I got this error again even during pip 18 install!

So I readed console logs again and saw some lines about user, permission etc. And tried to start cmd as admin, and repeat install pyinstaller.

It works!

So typical thing surprisely resolved the sitation. Hope it helps somebody.

You should navigate into your scripts folder and open command window there (by clicking right mouse button while holding down shift key) and write in there:

pyinstaller mypython35script.py

If the script is in another location drag your script into the command window after typing pyinstaller. Hope this helps.

Rename your pyinstaller to pyinstaller35 and also rename your pyinstaller-script.py to pyinstaller35-script.py inside the scripts directory which is inside the python3.5 installation directory. Now add the scripts directory to the system path. Now you can run it as pyinstaller35 yourfile.py -F

From Anaconda prompt the following works for me. Run the following command after navigating to the location of the module

pyinstaller --onefile mypython35script.py

In my case I just opened cmd in Admin mode and re-ran the below cmd and it worked.

pip install pyinstaller

This works in my case with pip version 19.0.1

cmd => rightclick => with admin rights

Enter in cmd: "pip install pyinstaller"
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!