Python pip – error: invalid command ‘bdist_wheel’

王朝学院·作者佚名  2016-08-27
窄屏简体版  字體: 小  |  中  |  大  |  超大  

原文@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

 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
© 2005- 王朝網路 版權所有 導航