pip install pyinstaller no module named pyinstaller

别来无恙 提交于 2019-12-23 17:27:48

问题


I wanted to install pyinstaller module with the following command:

pip install pyinstaller

But I always get the following error:


回答1:


I tried everything, but finally i found the solution.

You just have to downgrade your 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 again your pip :

python -m pip install --upgrade pip



回答2:


There seems to be a problem when using pip-19.0.1 because as the other answer suggests, using 18.1 works fine.

But also now pip-19.0.3 has been released and upgrading to that seems to fix the issue.

So I suggest you try to update pip and then install pyinstaller

python -m pip install --upgrade pip
pip install pyinstaller


来源:https://stackoverflow.com/questions/54338714/pip-install-pyinstaller-no-module-named-pyinstaller

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