Reputation: 1322
When I tried installing Flask I got this error:
ImportError: No module named packaging.version
Upvotes: 20
Views: 45710
Reputation: 1
i also have the problem when i install kats module, after try install a older packaging, such as "pip install packaging==21.0", i sovled my problem. hope helpfull.
Upvotes: 0
Reputation: 11
In case anyone stumbles upon this problem, my solution was to change the packaging version from 22.0 to 21.3.
Upvotes: 1
Reputation: 261
As an Ubuntu 14.04 user, upgrading pip to version 9.0.1 fixed this problem for me.
python get-pip.py
/tmp
directorysudo -H python /tmp/get-pip.py --no-index --find-links=/tmp pip
Upvotes: 4
Reputation: 3992
Try this
wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
Upvotes: 7
Reputation: 149
If your Python runs on Ubuntu, try to do this:
cd /usr/local/lib/python2.7/dist-packages
mv pkg_resources/ pkg_resources_bak/
I'm not sure what package installed the "pkg_resources", it will make pip always show error.
Upvotes: 13