1.Anaconda安装Tensorflow报错UnicodeDecodeError: 'utf-8' codec can't decode ## invalid start byte的问题之解决

时间:2023-12-15 19:45:44

安装TensorFlow

pip install --ignore-installed --upgrade tensorflow

报错:

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc1 in position 45: invalid start byte

修改:

D:\studySoftware\Anaconda3\Lib\site-packages\pip\compat\_init_.py的

eturn s.decode(sys.__stdout__.encoding)
应改为
return s.decode('cp936')