Qbot
Qbot copied to clipboard
'gbk' codec can't decode byte 0xa3 in position 83: illegal multibyte sequence
🐛 Bug Description
'gbk' codec can't decode byte 0xa3 in position 83: illegal multibyte sequence
To Reproduce
pip install -r requirements.txt
Environment
win11
Additional Notes
requirements.txt Save As UTF-8 with BOM will solve the problem
Hey @{user}! Welcome to the QBOT repo on Github.
USE UTF-8
python 程序头部加入:
#!/usr/bin/python
# -*- coding: UTF-8 -*-
上面的issue提出了是windows11, 并且python3.x默认使用UTF-8编码; #!/usr/bin/env python在Window系统下相当于普通的注释,并没有意义。
🐛 Bug Description
'gbk' codec can't decode byte 0xa3 in position 83: illegal multibyte sequence
To Reproduce
pip install -r requirements.txt
Environment
win11
Additional Notes
requirements.txt Save As UTF-8 with BOM will solve the problem
这个能解决, 原文件编码 是个 UTF-8 with NO BOM的 调整成 UTF-8 with BOM 就好了。
没有解决吗?安装的时候同样报这个错误
Win11下环境变量添加PYTHONUTF8,值填1,关掉终端重启
项目里面的requirements.txt用了UTF-8保存,需要以UTF - 8 with BOM另存为(或覆盖)就可以
requirements 确实有些问题,已经修复 #commit https://github.com/UFund-Me/Qbot/commit/9ea335fa4839ba738e802564c783585cf6fb678a