Tag Archives: PIP Install Error

[Solved] pip Install Error: is not a supported wheel on this platform

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

[Solved] PIP Install Error: FILE “D:\PYTHON39\SCRIPTS\PIP.EXE\__MAIN__.PY”, LINE 4, IN MODULENOTFOUNDERROR: NO MODULE NAMED ‘PIP’

Because other libraries are installed, an error occurs when executing the pip command:

D:\Python39>pip install xlrd
Traceback (most recent call last):
File “d:\python39\lib\runpy.py”, line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File “d:\python39\lib\runpy.py”, line 87, in _run_code
exec(code, run_globals)
File “D:\Python39\Scripts\pip.exe\__main__.py”, line 4, in <module>
ModuleNotFoundError: No module named ‘pip’

Solution:

Execute the following command: python -m ensurepip

 

 

 

After success, try the pip command again: pip install xlrd