解决安装Weditor提示GBK编码格式问题
解决安装Weditor提示GBK编码格式问题
报错信息:
UnicodeDecodeError: ‘gbk’ codec can’t decode byte 0xad in position 795: illegal multibyte sequence [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details.
问题原因:pip安装时解码格式非utf-8导致
解决方法:设置环境变量PYTHONUTF8的变量值为1
设置完成后重新进行pip install weditor即可正常安装
注意:如果设置环境变量前打开了CMD或者Powershell需要重启CMD或者Powershell来输入命令进行安装,如若还是不行,可重启电脑再次尝试