问题
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