wxPython-4.0.1
PyInstaller: 3.3.1
Python: 2.7.14
Windows-10-10.0.17134
Run the command
pyinstaller helloworld.py
Add Chinese path
..\test\dist\helloworld\ → ..test\dist\helloworld_测试\
Run
G:\python_project\python\gui_wxpython\test\dist\helloworld_测试>helloworld.exeTraceback (most recent call last): File "helloworld.py", line 13, in <module> File "site-packages\wx\core.py", line 2060, in __init__UnicodeDecodeError: 'utf8' codec can't decode byte 0xb2 in position 59: invalid start byte[11712] Failed to execute script helloworld
G:\python_project\python\gui_wxpython\test\dist\helloworld_测试>
G:\python_project\python\gui_wxpython\test\dist\helloworld_测试>helloworld.exe
Traceback (most recent call last):File "helloworld.py", line 13, in <module>File "site-packages\wx\core.py", line 2060, in __init__UnicodeDecodeError: 'utf8' codec can't decode byte 0xb2 in position 59: invalid start byte[11712] Failed to execute script helloworldG:\python_project\python\gui_wxpython\test\dist\helloworld_测试>
Can you help me? Thank you