Chinaunix首页 | 论坛 | 博客
  • 博客访问: 20043
  • 博文数量: 21
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 60
  • 用 户 组: 普通用户
  • 注册时间: 2016-11-15 14:57
文章分类

全部博文(21)

文章存档

2017年(3)

2016年(18)

我的朋友

分类: 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.


阅读(350) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~