Python pip – error: invalid command ‘bdist_wheel’
生活随笔
收集整理的這篇文章主要介紹了
Python pip – error: invalid command ‘bdist_wheel’
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
原文@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 Base
- pip 7.1.0 from https://bootstrap.pypa.io/get-pip.py
- python 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.
from setuptools import setupHowever, the pip 7.1.0 expects that the installed python setuptool module use distutils.core.
from distutils.core import setup?解決方案?
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-setuptools2. upgrading python setuptool module
$pip install setuptools --upgrade轉載于:https://www.cnblogs.com/BugQiang/p/4732991.html
總結
以上是生活随笔為你收集整理的Python pip – error: invalid command ‘bdist_wheel’的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: bellmanford队列优化
- 下一篇: Poj2480欧拉函数