Unable to install Python module on Ubuntu machine. When I try to install the Paramiko module, I receive the following error:
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
Finally I found a solution, it worked after cleaning up and re-installing pip:
sudo -i
apt-get purge -y python-pip
wget https://bootstrap.pypa.io/get-pip.py
python ./get-pip.py
apt-get install python-pip
Run
pip install packaging
Add sudo
if it is nessesary. It must resolve the issue.
你的pip安装可能有问题尝试:
sudo pip install --upgrade pip
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.