python - 为什么我的 pyinstaller 显示:'utf-8' 编解码器无法在位置解码字节 0xce
问题描述
我正在尝试选择我.py
的.exe
使用pyinstaller
,但有些事情发生了。像这样,
> 'utf-8' codec can't decode byte 0xce in position 121: invalid > continuation byte These are the bytes around the offending byte:
和
File "c:\users\demo\anaconda3\lib\site-packages\PyInstaller\compat.py",
第 580 行,在 exec_python 返回 exec_command(*cmdargs, **kwargs) 文件“c:\users\demo\anaconda3\lib\site-packages\PyInstaller\compat.py”,第 370 行,在 exec_command out = out.decode( encoding) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xce in position 121: invalid continuation byte
解决方案
推荐阅读
- javascript - 使用 JavaScript 和 jQuery 创建多个 div 并在每个 div 上分配一个名称
- android - 充气时抽屉布局崩溃
- python - 来自字符串的正则表达式多子字符串
- mongodb - 为什么删除方法不更新列表?
- rust - 从 Rust 中的 Struct Instance 引用值时的范围问题
- java - Spring Boot/MVC:考虑在你的配置中定义一个 'pack.website.repositories.CustomerRepository' 类型的 bean
- ios - 解决 UILabel 约束问题
- html - 列表右对齐
- usb - 为什么我的 USB HID 输出垃圾?STM32立方体
- stack - 堆栈迭代的时间复杂度