When installing Python using pip, the following error occurs: is not a supported wheel on this platform. pythonpip

Source: Internet
Author: User

When installing Python using pip, the following error occurs: is not a supported wheel on this platform. pythonpip

This article describes how to install Python using pip with the following error: is not a supported wheel on this platform. We will share this with you for your reference. The details are as follows:

Possible cause 1: The installed library is not corresponding to the python version. cp27 In the downloaded library name represents python2.7.

Possible cause 2: This is my situation (The corresponding version of the library is downloaded, and the system still prompts that the current platform is not supported.)

In https://www.lfd.uci.edu /~ In gohlke/pythonlibs/# numpy, the file name of the numpy library I downloaded is:

Numpy-1.10.4 + mkl-cp27-cp27m-win32.whl

Install the SDK using pip (in the command line ):

pip install numpy-1.10.4+mkl-cp27-cp27m-win32.whl 

Error: *** is not a supported wheel on this platform. The problem is solved by posting a post on stackoverflow.

Method: Enter

import pip; print(pip.pep425tags.get_supported())

You can obtain the file names and versions supported by pip, as shown in the following figure:

>>import pip; print(pip.pep425tags.get_supported())[('cp27', 'none', 'win32'), ('py2', 'none', 'win32'), ('cp27', 'none', 'any'), ('cp2', 'none', 'any'), ('cp26', 'none', 'any'), ('cp25', 'none', 'any'), ('cp24', 'none', 'any'), ('cp23', 'none', 'any'), ('cp22', 'none', 'any'), ('cp21', 'none', 'any'), ('cp20', 'none', 'any'), ('py27', 'none', 'any'), ('py2', 'none', 'any'), ('py26', 'none', 'any'), ('py25', 'none', 'any'), ('py24', 'none', 'any'), ('py23', 'none', 'any'), ('py22', 'none', 'any'), ('py21', 'none', 'any'), ('py20', 'none', 'any')]

Here we can find that the file name format downloaded above is not supported, modified to: numpy-1.10.4 + mkl-cp27-none-win32.whl can be successfully installed.

Other libraries can also be installed successfully, but pay attention to the library dependencies.

(Refer to Post URL: http://stackoverflow.com/questions/28107123/cannot-install-numpy-from-wheel-format? Rq = 1)

Supplement: skimage library Installation Error

Same as the above installation error, I installed the skimage Library: scikit_image 255.0.13.1 255.cp27 255.cp27m 255.win32.whl in Windows + Python2.7.9.

The error message is as follows:

Useimport pip; print(pip.pep425tags.get_supported())Command. The result is as follows:

 

Change scikit_image 20170.13.1 2017cp27 2017cp27m 2017win32.whl to scikit_image-0.13.1-cp27-none-win32.whl

Reuse

pip install scikit_image-0.13.1-cp27-none-win32.whl

Install it.

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.