. Advertisement .
..3..
. Advertisement .
..4..
I encounter this error ”importerror: no module named pkg_resources” when I try to install a PIP package:
$sudo pip2.7
Traceback (most recent call last):
File "/usr/bin/pip2.7", line 6, in <module>
from pkg_resources import load_entry_point
ImportError: No module named pkg_resources
What’s causing it, and how can it be resolved in the “importerror: no module named pkg_resources“ ?
The cause: This error message indicates a problem with or a missing Python setuptools.
Solution: Reinstalling the Python setuptools will solve the problem.
Install the setuptools version that corresponds to your Python version. Eg. For Python3.4,