sudo yum install epel-release

sudo yum install python-pip

 

Problem:

Cannot uninstall ‘PyYAML’. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

Reduced version:
pip install –upgrade –force-reinstall pip==9.0.3
Tried to re-install package:
pip install xxx –disable-pip-version-check
At last, recover the latest version for pip:
pip install –upgrade pip

 

error: invalid command ‘bdist_wheel’

pip install wheel