xxx.whl is not a supported wheel on this platform. 如何解决?

最近需要使用mxnet跑深度学习,但python中没安装mxnet的包,于是先在PyPi上下载了mxnet的whl格式文件后,然后通过pip安装:

pip install mxnet_cu110-1.8.0-py2.py3-none-manylinux2014_x86_64.whl

但执行完pip install后,出现以下错误:

mxnet_cu110-1.8.0-py2.py3-none-manylinux2014_x86_64.whl is not a supported wheel on this platform.

翻译过来就是,pip不支持这个wheel文件。
那pip到底支持哪些格式的wheel文件呢?我们可通过pip提供的get_supported()方法将其显示出来,我的系统显示如下结果:
xxx.whl is not a supported wheel on this platform. 如何解决?_第1张图片
发现确实没有manylinux2014_x86_64后缀格式的。那怎么办?难道就不装了吗?问题很好解决,只要把我们的文件重命名它所支持的格式就行了。我看上面的显示中有一项是(‘py3’, ‘none’, ‘manylinux1_x86_64’),和我这个wheel文件名的匹配度比较高,于是我就把文件中的数字2014改成了1,然后再用pip安装:
在这里插入图片描述
这次就安装成功了,哈哈。

你可能感兴趣的:(Linux系统环境配置,linux,pip,python)