首页 > 其他分享 >pip安装报错:is not a supported wheel on this platform

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

时间:2023-10-09 12:02:09浏览次数:45  
标签:wheel none supported win32 cp27 报错 pip import any

可能的原因1:

安装的不是对应python版本的库,下载的库名中cp27代表python2.7,其它同理。

 

可能的原因2:

(下载的是对应版本的库,然后仍然提示不支持当前平台)

  我下载到的numpy库文件名:

  • numpy-1.10.4+mkl-cp27-cp27m-win32.whl

  使用pip安装(在命令行中):

  • pip install numpy-1.10.4+mkl-cp27-cp27m-win32.whl 

  报错:***  is not a supported wheel on this platform

32 位系统的):在shell中输入import pip; print(pip.pep425tags.get_supported())  可以获取到pip支持的文件名还有版本,我这里如下:

>>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')]

  通过这里可以发现上面下载的文件名格式是不支持的,修改为:numpy-1.10.4+mkl-cp27-none-win32.whl即可成功安装。

 

上面是 32 位系统的,如果是 64 位需要修改为以下:

import pip
import pip._internal.pep425tags
print(pip._internal.pep425tags.get_supported())[('cp37', 'cp37m', 'win32'), ('cp37', 'none', 'win32'), ('py3', 'none', 'win32'), ('cp37', 'none', 'any'), ('cp3', 'none', 'any'), ('py37', 'none', 'any'), ('py3', 'none', 'any'), ('py36', 'none', 'any'), ('py35', 'none', 'any'), ('py34', 'none', 'any'), ('py33', 'none', 'any'), ('py32', 'none', 'any'), ('py31', 'none', 'any'), ('py30', 'none', 'any')]

pip安装报错:is not a supported wheel on this platform_文件名

 

 

C:\Users\Administrator\PycharmProjects\untitled\venv\Scripts>python
Python 3.7.4 (tags/v3.7.4:e09359112e, Jul  8 2019, 19:29:22) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyaudio
Could not import the PyAudio C module '_portaudio'.
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\Administrator\PycharmProjects\untitled\venv\lib\site-packages\pyaudio.py", line 116, in <module>
    import _portaudio as pa
ModuleNotFoundError: No module named '_portaudio'
>>> 
pip install pipwin 
pipwin install pyaudio



标签:wheel,none,supported,win32,cp27,报错,pip,import,any
From: https://blog.51cto.com/emanlee/7772031

相关文章

  • jenkins安装插件报错
    1、安装插件publish-over-ssh报错 解决方案:下载publish-over.hpi文件 https://updates.jenkins.io/download/plugins/publish-over/0.22/publish-over.hpi离线安装选择的插件: 然后再安装publish-over-ssh插件 ......
  • 成功解决WARNING: You do not appear to have an NVIDIA GPU supported by the 430.34
     https://blog.csdn.net/qq_41185868/article/details/97521492?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522169682165516800215061872%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=169682165516800215061872&......
  • 安装MySQL报错
    报错1:初始化报错mysqld:errorwhileloadingsharedlibraries:libaio.so.1:cannotopensharedobjectfile:Nosuchfileordirectory 缺少libaio.so.1共享库文件。libaio是一个用于异步I/O操作的库,MySQL依赖于它。解决这个问题的方法是安装libaio库。yum-yin......
  • Mysql 8.0 Navicat连接Mysql报错Authentication plugin ‘caching_sha2_password‘ ca
    1、终端登陆MySQL$mysql-uroot-ppassword#登入mysql2、修改账户密码加密规则并更新用户密码ALTERUSER'root'@'localhost'IDENTIFIEDBY'123456'PASSWORDEXPIRENEVER;#修改加密规则ALTERUSER'root'@'localhost'IDENTIFIEDWITHmysql_nat......
  • 报错
    目录报错案例找不到innodb更改5.7数据库的二进制日志时报错案例找不到innodb#删除redo,undorm-fr/app/mysql/data/ib_logfile*rm-fr/app/mysql/data/ibdata*#重启数据库systemctlrestartmysqld[root@db01data]#ll/application/mysql/data/-rw-rw----1mysq......
  • 解决Windows下pip安装bertopic报错:Failed building wheel for hdbscan
    在安装bertopic的过程中,遇到了Failedbuildingwheelforhdbscan,我先去网站:https://www.lfd.uci.edu/~gohlke/pythonlibs/#hdbscan下载了hdbscan‑0.8.28‑cp310‑cp310‑win_amd64.whl,并且用pip进行了本地安装,依然报错。然后仔细阅读报错信息,发现是build报错,我在Linux系统下并......
  • mysqldump 导出来的文件,使用 source还原时报错“ASCII '\0' appeared in the stateme
    导出语句:mysqldump-uroot-pword--databasesdb1--tablestable1>./sqldumps/archive-table1-`date+"%Y%m%d_%H%M%S"`.sql导出后,使用source还原报错:ASCII'\0'appearedinthestatement,butthisisnotallowedunlessoption我开始以为是我导出的编码格式有问题,......
  • harbor登录时报错error parsing HTTP 404 response body: invalid character
    **harbor登录时报如下错误: **[root@localhostTDFW-publish-tar]#dockerlogin--username=user1192.168.2.10:8090--passworduser1_passWARNING!Using--passwordviatheCLIisinsecure.Use--password-stdin.Errorresponsefromdaemon:Get"http://192.168.2.......
  • C# Dx截图初始化报错“SharpDX.SharpDXException: HRESULT: [0x80070057], Module: [G
    最近发现Dx截图创建输出设备时output.QueryInterface<Output1>().DuplicateOutput报错:“SharpDX.SharpDXException:HRESULT:[0x80070057],Module:[General],ApiCode:[E_INVALIDARG/InvalidArguments],Message:参数错误。经过验证,如果一个进程多次创建输出设备(多次调用o......
  • Maven 引用CDH 5.4 的zookeeper时报错:Could not find artifact javax.jms:jms:jar:1.1
    错误:Couldnotfindartifactjavax.jms:jms:jar:1.1incloudera由于默认5.4.0的包引用了zookeeper3.3.1版本,进而引用了log4j的某个版本,导致的报错,改为如下即可: pom:使用cloudera的源:<repositories><repository><id>cloudera</id><u......