分类: LINUX
2017-02-15 11:29:20
1.Traceback(most recent call last):
File "/usr/bin/pip3", line 5, in
from pkg_resources import load_entry_point
File"/home/USERNAME/.local/lib/python3.4/site-packages/pkg_resources/__init__.py",line 70, in
import packaging.version
ImportError:No module named 'packaging'
use the command ,python -m pip install --upgrade --force pip,to solve the errors.
2.Could not import setuptools which is required to install from a source distribution.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/pip/req/req_install.py", line 387, in setup_py
import setuptools # noqa
File "/usr/local/lib/python2.7/dist-packages/setuptools/__init__.py", line 12, in
import setuptools.version
File "/usr/local/lib/python2.7/dist-packages/setuptools/version.py", line 1, in
import pkg_resources
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 70, in
import packaging.version
ImportError: No module named packaging.version
use the command ,python -m pip install --upgrade --force setuptools,to solve the errors.