UnicodeDecodeError被pip抛出
UnicodeDecodeError被pip抛出
我看到使用pip
时经常出现解码错误,但是我无法将这里和这里提出的解决方案应用到我的问题上。
我有一个树莓派(4.4.11-v7+)。当我尝试使用pip install
升级一个包时,我会遇到以下错误:
UnicodeDecodeError: 'utf8' codec无法解码位置348的字节0xa0:无效的起始字节
与
Traceback (most recent call last): File "/usr/local/bin/pip", line 9, inload_entry_point('pip==8.1.0', 'console_scripts', 'pip')() File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 356, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2476, in load_entry_point return ep.load() File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2190, in load ['__name__']) File "/usr/local/lib/python2.7/dist-packages/pip-8.1.0-py2.7.egg/pip/__init__.py", line 13, in from pip.utils import get_installed_distributions, get_prog File "/usr/local/lib/python2.7/dist-packages/pip-8.1.0-py2.7.egg/pip/utils/__init__.py", line 22, in from pip.compat import console_to_str, expanduser, stdlib_pkgs File "/usr/local/lib/python2.7/dist-packages/pip-8.1.0-py2.7.egg/pip/compat/__init__.py", line 24, in from pip._vendor import ipaddress
我不确定如何在第24行进行干预以解决编码问题。