原文@http://software-engineer.gatsbylee.com/python-pip-error-invalid-command-bdist_wheel/
Python pip – error: invalid command ‘bdist_wheel’环境python-setuptools 0.6.10 from CentOS 6 Basepip 7.1.0 from https://bootstrap.pypa.io/get-pip.pypython 2.6问题?When I install python modules, such ans Flask, SQLAlchemy, etc., I got this error “error: invalid command ‘bdist_wheel'”.
原因?This is compatibility issue between pip and setuptools.
The python-setuptool 0.6.10 from CentOS 6 uses python module, setuptools.
fromsetuptoolsimportsetup
However, the pip 7.1.0 expects that the installed python setuptool module use distutils.core.
fromdistutils.coreimportsetup
解决方案?There could be two apPRoaches.
1. using the pip packages from CentOS 6 which is 1.3.1.
$ python -m pip uninstall pip setuptools
$ yum install python-pip python-setuptools
2. upgrading python setuptool module
$pip install setuptools --upgrade