环境:
Windows 10
Python 3.6
Pip 9.0.1
问题:
pip install scrapy 出现错误 “UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xd5 in position 2: invalid continuation byte”
解决办法:
打开C:\Users\Administrator\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\pip\compat\__init__.py
return s.decode(‘utf_8’) 改为 return s.decode(‘cp936’)
Comments on this entry are closed.