zoukankan      html  css  js  c++  java
  • 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 setup

    However, 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-setuptools

    2. upgrading python setuptool module

    $pip install setuptools --upgrade
  • 相关阅读:
    PLL详解
    CSI-2 协议
    C语言volatile关键字的用法
    联合体(union)的使用方法及其本质
    Linux驱动之LED驱动编写
    insmod 和第一个驱动
    黑电平校正BLC
    什么是HDR?
    使用starUML画顺序图
    UML 资料整理
  • 原文地址:https://www.cnblogs.com/BugQiang/p/4732991.html
Copyright © 2011-2022 走看看