pyinstaller 使用出錯記錄

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
    
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章