错误:错误:[wheel].whl 在此平台上不支持轮子。 (树莓派 4 Linux aarch64)

问题描述 投票:0回答:2

我正在尝试在我的 Raspberry Pi 上安装tensorflow,但遇到了一个尚未有人能够解决的错误。当我尝试在 aarch64 上安装 aarch64 轮子时,出现标题中提到的错误。我正在遵循 https://qengineering.eu/install-tensorflow-on-raspberry-64-os.html 上的指南以及其他指南,但没有运气。 例如,

(env) raspberry@tars:~/TARS/io/dist $ sudo -H pip install tens
orflow_io_gcs_filesystem-0.23.1-cp39-cp39-linux_aarch64.whl
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
ERROR: tensorflow_io_gcs_filesystem-0.23.1-cp39-cp39-linux_aarch64.whl is not a supported wheel on this platform.
(env) raspberry@tars:~/TARS/io/dist $ uname -m
aarch64

我也运行过这个:

(env) raspberry@tars:~/TARS/io/dist $ python
Python 3.9.2 (default, Mar 12 2021, 04:06:34)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from distutils import util
>>> util.getplatform()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'distutils.util' has no attribute 'getplatform'
>>> import platform
>>> print(platform.platform())
Linux-6.1.21-v8+-aarch64-with-glibc2.31

在过去一年左右的时间里,我找不到任何人尝试在树莓派上使用 Tensorflow。 Raspberry Pi 上的 TensorFlow 是否无法再实现?如果树莓派设备上对 Tensorflow 的所有支持都消失了,我将不得不继续前进。

感谢您的支持,谢谢。

python tensorflow raspberry-pi
2个回答
0
投票

我也遇到过这样的问题:

sudo -H pip3安装tensorflow_io_gcs_filesystem-0.23.1-cp39-cp39-linux_aarch64.whl 查看索引:https://pypi.org/simplehttps://www.piwheels.org/simple 错误:tensorflow_io_gcs_filesystem-0.23.1-cp39-cp39-linux_aarch64.whl 在此平台上不受支持。

它迫使我使用“寻找索引”,我试图用“--no-index”来违背它


0
投票

简而言之,您的操作系统可能不合适或配置错误。您可能需要为 Raspberry Pi 4 重新安装 64 位操作系统版本。

自从我遇到同样的问题以来,我做了一个简短的研究,我在这里找到了一个有趣的指南:https://qengineering.eu/install-pytorch-on-raspberry-pi-4.html,我在其中了解了这个问题。

按照说明操作,我能够确定我正在使用 32 位操作系统。这是您应该运行的命令:

getconf LONG_BIT

您应该看到结果为 64。如果它是 32,就像我一样,这意味着您可能应该使用 64 位版本在 Raspberry 上重新安装操作系统。

此外,您的 GCC 需要正确配置。在我的 Raspberry 中(aarch64 轮子也不起作用),当我尝试时,我看到这些标志

gcc -v

--enable-checking=release
--build=arm-linux-gnueabihf
--host=arm-linux-gnueabihf
--target=arm-linux-gnueabihf

根据指南,人们应该看到:``` --target=aarch64-linux-gnu``,能够正确构建包/轮子/库。

© www.soinside.com 2019 - 2024. All rights reserved.