linux python3安装whl包时报错解决:is not a supported wheel on this platform
2021-03-07 11:27
标签:inux upd files roo 安装 linux pip form tag 你下载安装的包不是当前平台所支持的 你下载的包,不符合你所在的平台的安装whl的名称规范,所以出错。 但是在我的系统中使用如下命令安装: 但是出现了下面的错误提示: 在shell中运行python,然后输入如下的命令: 输出结果如下: 其中有一个 来源:https://blog.csdn.net/sty945/article/details/105200436/ linux python3安装whl包时报错解决:is not a supported wheel on this platform 标签:inux upd files roo 安装 linux pip form tag 原文地址:https://www.cnblogs.com/yizhipanghu/p/14265663.html原因1
原因2
比如当前我要安装的包是:pymssql-2.1.5-cp36-cp36m-manylinux1_x86_64.whlpip3 install pymssql_linux-2.1.6-cp36-cp36m-manylinux2010_x86_64.whl
pymssql_linux-2.1.6-cp36-cp36m-manylinux2010_x86_64.whl is not a supported wheel on this platform.
解决办法1
[root@localhost ~] python3
>>import pip;print(pip.pep425tags.get_supported())
[(‘cp36‘, ‘cp36m‘, ‘manylinux1_x86_64‘), (‘cp36‘, ‘cp36m‘, ‘linux_x86_64‘), (‘cp36‘, ‘abi3‘, ‘manylinux1_x86_64‘), (‘cp36‘, ‘abi3‘, ‘linux_x86_64‘), (‘cp36‘, ‘none‘, ‘manylinux1_x86_64‘), (‘cp36‘, ‘none‘, ‘linux_x86_64‘), (‘cp35‘, ‘abi3‘, ‘manylinux1_x86_64‘), (‘cp35‘, ‘abi3‘, ‘linux_x86_64‘), (‘cp34‘, ‘abi3‘, ‘manylinux1_x86_64‘), (‘cp34‘, ‘abi3‘, ‘linux_x86_64‘), (‘cp33‘, ‘abi3‘, ‘manylinux1_x86_64‘), (‘cp33‘, ‘abi3‘, ‘linux_x86_64‘), (‘cp32‘, ‘abi3‘, ‘manylinux1_x86_64‘), (‘cp32‘, ‘abi3‘, ‘linux_x86_64‘), (‘py3‘, ‘none‘, ‘manylinux1_x86_64‘), (‘py3‘, ‘none‘, ‘linux_x86_64‘), (‘cp36‘, ‘none‘, ‘any‘), (‘cp3‘, ‘none‘, ‘any‘), (‘py36‘, ‘none‘, ‘any‘), (‘py3‘, ‘none‘, ‘any‘), (‘py35‘, ‘none‘, ‘any‘), (‘py34‘, ‘none‘, ‘any‘), (‘py33‘, ‘none‘, ‘any‘), (‘py32‘, ‘none‘, ‘any‘), (‘py31‘, ‘none‘, ‘any‘), (‘py30‘, ‘none‘, ‘any‘)]
(‘cp36‘, ‘cp36m‘, ‘manylinux1_x86_64‘)
意味着如果我要安装python3.6版本的whl,那么我的whl文件中应该是manylinux1_x86_64
而不是manylinux2010_x86_64
,所以我将文件名改成pymssql-2.1.5-cp36-cp36m-manylinux1_x86_64.whl,然后再进行安装,结果安装成功。
上一篇:python---面试
下一篇:线程中的信号量
文章标题:linux python3安装whl包时报错解决:is not a supported wheel on this platform
文章链接:http://soscw.com/index.php/essay/61308.html