安装报错:is not a supported wheel on this platform

安装报错:is not a supported wheel on this platform

一. 在通过.whl文件导包时出现的错误,可能原因有以下两点:

  1. 安装的不是对应python版本的库
  2. whl文件不是给本电脑系统用的
  3. whl文件名本台电脑不支持

二. 解决办法

  1. 原因1就从新下载对python版本的包,若python版本为python3.11.0即选择cp311的文件。
  2. 原因2就下载对应系统的文件。windows64位下载-win_amd64,linux下载-linux_x86_64。
  3. 原因3就通过pip debug --verbose 命令插看 pip 支持的名字,然后修改。
    比如说:pip install numpy-1.10.4+mkl-cp27-cp27m-win32.whl 修改为numpy-1.10.4+mkl-cp27-none-win32.whl

三.参考
1.pip安装报错:is not a supported wheel on this platform
2.Python 语法问题-module ‘pip._internal‘ has no attribute ‘pep425tags‘. 原因及解决办法,32位、64位查看pip支持万能方法

你可能感兴趣的:(代码报错解决,python,numpy,开发语言)