如何在该平台上安装不受支持的滚轮.whl?仅可用文件

时间:2019-04-08 18:24:13

标签: python python-3.x pip python-wheel

我目前正在使用某些IMU传感器,制造商提供了一个wheel文件来管理来自python的传感器数据。但是,每当尝试使用pip安装它时,我都会收到以下消息:

let n = 10;
let arr = Array.from(Array(n).keys());

console.log(arr);

我的系统配置如下:

  • 操作系统:Ubuntu 18.04
  • Python:Python 3.6.7
  • 点子:/ usr / lib / python3 / dist-packages(python 3.6)中的点子9.0.1

我已经阅读了类似的线程和the response from Arun,并在键入建议的命令之后,首先输入python解释器:

pip3 install xsensdeviceapi-2019.0.1-cp35-none-linux_x86_64.whl
xsensdeviceapi-2019.0.1-cp35-none-linux_x86_64.whl is not a supported wheel on this platform.

我得到下一个输出:

python3
>>> import pip
>>> print(pip.get425tags.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')]

给定的输出中没有 cp35-none 标记

现在的问题是,在其他线程中,大多数情况下,解决方案是根据受支持的标记和python版本,搜索正确的wheel文件。但是在这种情况下,这是唯一可用的文件。同样在this other thread中,DSchmidt建议通过pip.get425tags.get_supported()升级pip,这对我也不起作用,仍然无法安装轮子,也无法导入任何其他模块,例如numpy或matplotlib。

那么,有没有办法增加对我的python环境的支持? 还是我需要使用docker之类的东西来创建另一个环境?

我是个新手,所以我们将不胜感激。

1 个答案:

答案 0 :(得分:0)

不幸的是,即使您确实在Python 3.6上安装了该滚轮,也无法运行。通常,为一个版本的Python编译的扩展不适用于其他版本。

deadsnakes PPA是在Ubuntu上安装旧版本Python的一种方法。您也许可以从https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa

获得兼容的Python 3.5