ImportError: module 'setuptools.dist' has no 'check_specifier' attribute

22.8k views Asked by At

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

There are 2 answers

1
Vishal K On BEST ANSWER

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.

0
Sami On

For python 3 and later 3.x, use pip3

sudo pip3 install setuptools --upgrade

No need to use sudo for a virtual environment or in admin console of windows,so use simply

pip3 install setuptools --upgrade