打包带走
- 安装pyinstaller
- 打包exe
- 错误处理
-
- [UnicodeDecodeError: 'utf-8' codec can't decode byte](#UnicodeDecodeError: 'utf-8' codec can't decode byte)
安装pyinstaller
管理员启动cmd:pip install pyinstaller
卸载:pip uninstall pyinstaller
验证安装:pyinstaller --version
打包exe
进入py文件对应的目录:pyinstaller xxx.py
错误处理
UnicodeDecodeError: 'utf-8' codec can't decode byte
在最开头添加如下声明即可
csharp
# -*- coding: latin1 -*-