Home  >  Article  >  Backend Development  >  Why does Pip give the error \"filename.whl is not a supported wheel on this platform\"?

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

Mary-Kate Olsen
Mary-Kate OlsenOriginal
2024-10-31 16:01:47343browse

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!

Statement:
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