ImportError: module 'setuptools.dist' has no 'check_specifier' attribute
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
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.