Python pip-error: invalid command 'bdist _ wheel ', pipbdist_wheel

Source: Internet
Author: User

Python pip-error: invalid command 'bdist _ wheel ', pipbdist_wheel

Original @ http://software-engineer.gatsbylee.com/python-pip-error-invalid-command-bdist_wheel/
Python pip-error: invalid command 'bdist _ wheel' Environment
  • Python-setuptools 0.6.10 from CentOS 6 Base
  • Pip 7.1.0 from https://bootstrap.pypa.io/get-pip.py
  • Python 1, 2.6
Question?

When I install python modules, such ans Flask, SQLAlchemy, etc., I got this error "error: invalid command 'bdist _ wheel '".

Why?

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
Solution?

There cocould 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.