![]() |
Code example in zipapp not work - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Code example in zipapp not work (/thread-16759.html) |
Code example in zipapp not work - paleneutron - Mar-13-2019 I have followed examples in https://docs.python.org/3/library/zipapp.html#making-a-windows-executable. However, got an error when I try to execute it. >zastub.exe File "zastub.exe", line 1 SyntaxError: Non-UTF-8 code starting with '\x90' in file zastub.exe on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for detailsbut no one told me where to declared encoding for an exe file. I have add # coding=utf8 to the python compile script but not work.How to resolve this problem? My system default encoding is gbk .
|