ImportError: module 'setuptools.dist' has

2019-02-11 12:58发布

Ceph teuthology installation fails with following error on Ubuntu 14.04, kernel 4.4.0-51-generic:

ImportError: <module 'setuptools.dist' from '/usr/lib/python2.7/dist-packages/setuptools/dist.pyc'> has no 'check_specifier' attribute

2条回答
冷血范
2楼-- · 2019-02-11 13:08

It was due to older setuptools version. I updated setuptools as follows:

sudo pip install setuptools --upgrade

It installed setuptools-31.0.0 and that worked.

查看更多
放我归山
3楼-- · 2019-02-11 13:15

For python 3 and later 3.x, use pip3

sudo pip3 install setuptools --upgrade
查看更多
登录 后发表回答