【解决】YOLOv6.1安装requirements.txt报错UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0x84

案例描述:

使用YOLOV5时,报错解决UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0x84 in position 285: illegal multibyte sequence

解决方案:

在C:\ProgramData\Anaconda3\lib\distutils\dist.py"文件搜索read

将

parser.read(filename)

修改为

parser.read(filename, 'utf-8')

然后输入

pip install -r  ./requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/

成功解决!!

猜你喜欢

转载自blog.csdn.net/qq_39237205/article/details/124509876