ImportError: module 'setuptools.dist' has no 'check_specifier' attribute
Asked Answered
O

2

26

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
Orgasm answered 14/12, 2016 at 11:38 Comment(0)
O
55

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.

Orgasm answered 14/12, 2016 at 11:38 Comment(1)
Thanks. It was also due to an old pip 1.5 on my side. Don't forget to pip install -U pip !Andry
L
5

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
Lunate answered 3/5, 2018 at 11:29 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.