Why does Pip give the error \'filename.whl is not a supported wheel on this platform\'?

Mary-Kate Olsen
Release: 2024-10-31 16:01:47
Original
356 people have browsed it

Why does Pip give the error

"filename.whl is not a supported wheel on this platform" Error: Troubleshooting and Solution

Problem:
When attempting to install a WHL file (e.g., scipy-0.15.1-cp33-none-win_amd64.whl) using Pip, an error occurs indicando that the WHL is not supported on the current platform.

Reason:
The WHL file contains pre-built code that is only compatible with a specific Python version and platform. In this case, the WHL file is for CPython 3.3, but the user is likely using CPython 2.7.

Solution:
To rectify this issue, obtain the WHL file corresponding to the Python version and platform in use. In this scenario, the correct WHL file would be scipy-0.15.1-cp27-none-win_amd64.whl for CPython 2.7 on a Windows 64-bit platform. Install this WHL file instead to avoid the platform incompatibility error.

The above is the detailed content of Why does Pip give the error \'filename.whl is not a supported wheel on this platform\'?. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!