pyinstaller 使用過程中碰到如下問題
- 使用pyinstaller打包時出現如下錯誤:
SyntaxError: Non-UTF-8 code starting with '\xce' in file C:\Users\用戶名\AppData\Local\Programs\Python\Python37\Scripts\pyinstaller-script.py 解決方法: 找到安裝目錄下的該文件,打開,在最前添加如下指令: # coding: utf-8
- 安裝pyinstaller時出現如下問題:
invalid command 'bdist_wheel' SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xd6 in position 0: invalid continuation byte 解決方法: 參考其它如升級pip或setuptools,都沒解決.最後從pypi下載離線包,解壓後,進入離線包,執行如下安裝指令,得以解決: python setup.py