pip安装软件报错 utf-8 code can't decode byte 0xcf in position7
pip安装软件报错 utf-8 code can't decode byte 0xcf in position7 根据错误提示的路径找到__init__.py文件 根据错误提示的最后几句话找到对应的行数,将’utf-8’修改为’gbk’即可,如下所示
if sys.version_info >= (3,):
def console_to_str(s):
try:
return s.decode(sys.__stdout__.encoding)
except UnicodeDecodeError:
return s.decode('gbk')
这样试过,改成gbk又报别的错误,
参照:
https://blog.csdn.net/weixin_43344725/article/details/83065614
https://www.cnblogs.com/Owen-ET/p/6897578.html