Can't use PyInstaller

北城余情 提交于 2020-03-05 04:01:42

问题


I've installed PyInstaller through pip on Python 3.5.2 but I can't get it to work.

After running the command prompt in the folder where the .py file is and typing in 'PyInstaller practicaGUI.py' I get this error.

Is there a way to solve this? If not, what are the alternatives?

EDIT:

My pyinstaller-script.py looks like this


回答1:


Try opening pyinstall-script.py from your error message in a text editor (like Notepad++) and convert it to UTF-8 explicitly. The message says the encoding is wrong.

While on it, look out for broken characters in the code that aren't displayed correctly. Retype them, save, try again.



来源:https://stackoverflow.com/questions/46618310/cant-use-pyinstaller

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