ssd [Error] UnicodeDecodeError: 'gbk' codec can't decode byte 0x81 in position【已解决】

使用ssd训练,pip install viz 的时候遇到的错误:

Traceback (most recent call last):
      File "", line 1, in 
      File "C:\Users\xx\AppData\Local\Temp\pip-build-nn12vt2q\viz\setup.py", line 12, in 
        long_description=open('README.rst').read(),
    UnicodeDecodeError: 'gbk' codec can't decode byte 0x81 in position 680: illegal multibyte sequence

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\xx\AppData\Local\Temp\pip-build-nn12vt2q\viz\

解决方法【修改安装包源码,哪错改哪!】:

错误原因应该是:pip默认使用了windows系统的编码格式gbk,解决步骤,修改viz源码:

https://pypi.org/project/viz/【viz源码下载网址】

也可以:

git clone https://github.com/chbrown/viz.git
cd viz

然后在viz源码step.py中找到报错的位置:line 12:

改为:

然后

python setup.py install

就可以啦

你可能感兴趣的:(计算机视觉,ssd,'gbk',codec,can't,decode,byte,0x81)