Home > Article > Backend Development > Why does Pip give the error \"filename.whl is not a supported wheel on this platform\"?
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!