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
    

你可能感兴趣的:(python)