【Python】XXX is not a supported wheel on this platform 问题解决

【Python】XXX is not a supported wheel on this platform 问题解决

一、报错原因解释

错误译为XXX的命名不符合规范
有兴趣可以新建一个py文件执行如下代码查看有效命名方式

import pip._internal
print(pip._internal.pep425tags.get_supported())

运行结果为:

[('cp38', 'cp38m', 'win_amd64'), ('cp38', 'none', 'win_amd64'), ('py3', 'none', 'win_amd64'), ('cp38', 'none', 'any'), ('cp3', 'none', 'any'), ('py38', 'none', 'any'), ('py3', 'none', 'any'), ('py37', 'none', 'any'), ('py36', 'none', 'any'), ('py35', 'none', 'any'), ('py34', 'none', 'any'), ('py33', 'none', 'any'), ('py32', 'none', 'any'), ('py31', 'none', 'any'), ('py30', 'none', 'any')]

以上是有效的命名方式。

二、解决方法

在以上的有效的命名方式中,选取一种即可。笔者常用的是选取第一种('cp38', 'cp38m', 'win_amd64')

【具体用法】
在这里插入图片描述
遇到图示提示则需要把原名为"lxml-4.5.0-cp38-cp38-win_amd64.whl" 改为 :“lxml-4.5.0-cp38-cp38m-win_amd64.whl”
然后再次安装。
在这里插入图片描述
此时则可以安装成功。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值