问题
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
回答1:
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.
回答2:
For python 3 and later 3.x, use pip3
sudo pip3 install setuptools --upgrade
来源:https://stackoverflow.com/questions/41141657/importerror-module-setuptools-dist-has-no-check-specifier-attribute