Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
332 views
in Technique[技术] by (71.8m points)

python - Error when installing tensorflow on Ubuntu Server 20.04

I have a Raspberry Pi 4B with Ubuntu Server 20.04 and I'm getting an error when trying to install 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.

I have Python 3.8.5 64-bit installed

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')
>>>

My pip is also >19.0

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

From the comment section for the benefit of the community.

You need to look for aarch64/arm64 package in order to install Tensorflow on Ubuntu 20.4.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...