Possible reason 1: The installed library is not the corresponding python version. In the downloaded library name, cp27 represents python2.7, and the same is true for others.
Possible reason 2: This is the situation I encountered (downloaded the corresponding version of the library, and then still prompted that the current platform is not supported)
The filename of the numpy library I downloaded:
Install with pip (on the command line):
Error: *** is not a supported wheel on this platform, the problem was successfully solved by a post on stackoverflow.
Method: Enter import pip in the shell; print(pip.pep425tags.get_supported()) can get the file name and version supported by pip, here I am as follows:
>>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')]
It can be found here that the file name format downloaded above is not supported, and it can be successfully installed by modifying it to: numpy-1.10.4+mkl-cp27-none-win32.whl.
Other libraries can also be successfully installed in the same way, but please also pay attention to the dependencies of the library.
Reference: http://stackoverflow.com/questions/28107123/cannot-install-numpy-from-wheel-format?rq=1
Similar Posts:
- Python2.7 Install Numpy Error:is not a supported wheel on…
- MySQL_python‑1.2.5‑cp27‑none‑win_amd64.whl is not a valid wheel filename.
- Windows Python Install: requires numpy+mkl & ImportError: cannot import name NUMPY_MKL
- [Solved] pytorchImportError: numpy.core.multiarray failed to import
- Troubleshooting the installation of twisted
- [Solved] “import numpy as np” ImportError: No module named numpy
- Mac OS uses pip to install pandas prompt cannot install ‘numpy’ solution
- Compilation of SSE/AVX/FMA instruction set in tensorflow CPU environment
- python from scipy.misc import imread:ImportError: cannot import name imread
- Pycharm introduces numpy error: ImportError: Importing the multiarray numpy extension module failed. Most likely you are trying to import a failed build of numpy.