Can't run pip: UnicodeDecodeError

一曲冷凌霜 提交于 2019-11-29 09:34:00
antoine

I had the same issue. In my case, it comes from a non-standard character in a module description.

I added a

print f.path

in the script

/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py

before line 2025, which allowed me to identify the file which was raising an error. It appeared to be the file

/usr/lib/pymodules/python2.7/rpl-1.5.5.egg-info

whose author has a name containing the ö character, which can not be read. I simply replaced the "Göran" with "Goran" in this file and it fixed the problem.

hope this helps.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!