ubuntu pip 报错

前端之家收集整理的这篇文章主要介绍了ubuntu pip 报错前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

错误如下:

Traceback (most recent call last): File "/usr/bin/pip",line 5,in <module> from pkg_resources import load_entry_point File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py",line 70,in <module> import packaging.version ImportError: No module named packaging.version

解决方法

sudo apt-get purge python-pip

wget https://bootstrap.pypa.io/get-pip.py

python get-pip.py

参考http://askubuntu.com/questions/561377/pip-wont-run-throws-errors-instead

猜你在找的Ubuntu相关文章