Solve the problem of pip installing numpy: ERROR: Failed building wheel for numpy/ERROR: numpy-1.22.4+mkl-cp38-cp38-win_amd64.wh

There have been problems

  1. ERROR: Failed building wheel for numpy
  2. After downloading the whl file, an error is reported ERROR: numpy-1.22.4+mkl-cp38-cp38-win_amd64.whl is not a supported wheel on this platform.

A comprehensive solution to multiple blogs:

1. 使用pip debug --verbose 命令即可看 pip 支持
在compatible tags中查看pip支持的版本
然后在https://www.lfd.uci.edu/~gohlke/pythonlibs/#ta官网中下载对应的轮子
将下载的轮子存储在python所在的Scripts文件中

insert image description here
insert image description here

然后在vscode终端输入pip install numpy -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

insert image description here
I finally succeeded according to the above steps. I
stepped on the thunder
and directly pip install the wheel file (❌)
Use the pip._internal command to view the supported version (❌)
insert image description here
Good luck! come on!

Fear itself is the most terrible thing, but nothing is terrible. — To Kill a Mockingbird

Guess you like

Origin blog.csdn.net/qq_51800570/article/details/129852707