在 Ubuntu 服务器 20.04 上安装 tensorflow 时出错

Error when installing tensorflow on Ubuntu Server 20.04

我有一个 Raspberry Pi 4B 和 Ubuntu 服务器 20.04,我在尝试安装 tensorflow 时遇到错误。

ubuntu@pi1:~$ pip3 install tensorflow
ERROR: Could not find a version that satisfies the requirement tensorflow
ERROR: No matching distribution found for tensorflow

ubuntu@pi1:~$ pip3 install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow_cpu-2.4.0-cp38-cp38-manylinux2010_x86_64.whl
ERROR: tensorflow_cpu-2.4.0-cp38-cp38-manylinux2010_x86_64.whl is not a supported wheel on this platform.

我安装了 Python 3.8.5 64 位

ubuntu@pi1:~$ python
Python 3.8.5 (default, Jul 28 2020, 12:59:40)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.architecture()
('64bit', 'ELF')
>>>

我的点子也是>19.0

ubuntu@pi1:~$ pip3 -V
pip 20.3.3 from /home/ubuntu/venv/lib/python3.8/site-packages/pip (python 3.8)

来自评论区造福社区

您需要寻找 aarch64/arm64 软件包才能在 Ubuntu 20.4 上安装 Tensorflow