国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

Pythonpip–error:invalidcommand‘bdist_wheel’

2019-11-14 17:03:18
字體:
來源:轉載
供稿:網友
原文@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

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 香港 | 无锡市| 麻城市| 娄底市| 汾西县| 即墨市| 平度市| 平武县| 海晏县| 南京市| 土默特左旗| 秀山| 宾川县| 南川市| 达孜县| 永城市| 丹东市| 巍山| 邻水| 安宁市| 新建县| 寻甸| 佛山市| 广汉市| 潮安县| 怀仁县| 婺源县| 兰州市| 涞源县| 大庆市| 金门县| 元朗区| 河津市| 嘉荫县| 陕西省| 石嘴山市| 专栏| 临颍县| 金秀| 蒙阴县| 平谷区|