Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/qengineering/tensorflow-raspberry-pi_64-bit

TensorFlow installation wheels for Raspberry Pi 64 OS
https://github.com/qengineering/tensorflow-raspberry-pi_64-bit

aarch64 armv8 cpp deep-learning installation-wheel linux pip python python3 raspberry-pi raspberry-pi-4 raspberry-pi-64-os raspberry-pi-ubuntu1804 raspberry-pi-ubuntu2004 tensorflow tensorflow-2-3 tensorflow-2-4 tensorflow2 wheel whl

Last synced: about 19 hours ago
JSON representation

TensorFlow installation wheels for Raspberry Pi 64 OS

Awesome Lists containing this project

README

        

# TensorFlow wheels for Raspberry Pi
![output image]( https://qengineering.eu/images/Tensor-flow_icon.webp )

Find your operating system and TensorFlow version in the table below. Follow the instructions in the provided guide.

-----------------

## Roadmap.
| Operating system | TF 2.15.0 | TF 2.10.0 | TF 2.9.1 | TF 2.8.0 | TF 2.7.0 | TF 2.6.0 | TF 2.5.1 | TF 2.5.0 | TF 2.4.1 | TF 2.4.0 | TF 2.3.1 | TF 2.3.0 | TF 2.2.0 | TF 2.1.0 | TF 1.15.2
| ----------------- | :------: | :------: | :------: | :------: | :------: | :------: | :------: | :------: | :------: | :------: | :------: | :------: | :------: | :------: | :------: |
| Raspberry Pi **32-bit Buster** | | | | | | | | | | | | | [Wheel](https://drive.google.com/file/d/11mujzVaFqa7R1_lB7q0kVPW22Ol51MPg/view?usp=sharing)
[C API](https://drive.google.com/open?id=143abOB3eyMvCq6nj6M7co4-v9VLR5SW0)
[Guide](https://qengineering.eu/install-tensorflow-2.2.0-on-raspberry-pi-4.html) | [GitHub](https://github.com/Qengineering/TensorFlow-Raspberry-Pi) | [GitHub](https://github.com/Qengineering/TensorFlow-Raspberry-Pi) |
| Raspberry Pi **64-bit Buster** | | | | | | [Wheel](https://drive.google.com/file/d/1BLXP7RKEfTp9fxbmI8Qu2FdhU7NUxcwV/view?usp=sharing)
[C API](https://drive.google.com/file/d/1ShYMM07rAiLh8nleqaRP2PCkf9B8NYa_/view?usp=sharing)
[Guide](https://qengineering.eu/install-tensorflow-2.6-on-raspberry-64-os.html) | [Wheel](https://drive.google.com/file/d/1g6jegU7QMm4QBkDKt7dWWXaauZjfE30l/view?usp=sharing)
[C API](https://drive.google.com/file/d/1CuWeGEDcpZBlMrYBzTKIn2Imc9zjaTwb/view?usp=sharing)
[Guide](https://qengineering.eu/install-tensorflow-2.5-on-raspberry-64-os.html) | [Wheel](https://drive.google.com/file/d/158xXoPWOyfNswDTaapyqpREq_CBk1O_G/view?usp=sharing)
[C API](https://drive.google.com/file/d/1CuWeGEDcpZBlMrYBzTKIn2Imc9zjaTwb/view?usp=sharing)
[Guide](https://qengineering.eu/install-tensorflow-2.5-on-raspberry-64-os.html) | [Wheel](https://drive.google.com/file/d/1WDG8Rbi0ph0sQ6TtD3ZGJdIN_WAnugLO/view?usp=sharing)
[C API](https://drive.google.com/file/d/1EFwrkf2NwGUiRKHa-xAJJHunOC5_wrDG/view?usp=sharing)
[Guide](https://qengineering.eu/install-tensorflow-2.4.0-on-raspberry-64-os.html) | [Wheel](https://drive.google.com/file/d/1x2nxbi8rLvF7WzYkuwt9SOuDvsOUytjE/view?usp=sharing)
[C API](https://drive.google.com/file/d/1oquDH2xcrhiXYU0eXTU9pw6CnCLreByr/view?usp=sharing)
[Guide](https://qengineering.eu/install-tensorflow-2.4.0-on-raspberry-64-os.html) | [Wheel](https://drive.google.com/file/d/1jbkp2rSZZ3YY-AM1vuHyB9hI05zrZGHg/view?usp=sharing)
[C API](https://drive.google.com/file/d/1Rm-pICH2nHYFlcvg9Jac7aYT_-Ikrkla/view?usp=sharing)
[Guide](https://qengineering.eu/install-tensorflow-2.3.1-on-raspberry-64-os.html) | [Wheel](https://drive.google.com/file/d/1QjsBN5fKAd-5gi01UqdeYpy9Wc0Gd8Fw/view?usp=sharing)
[C API](https://drive.google.com/file/d/1EppR_MibeG3n26rLCdFhjabV96XnvW3T/view?usp=sharing)
[Guide](https://qengineering.eu/install-tensorflow-2.3.0-on-raspberry-64-os.html) | [Wheel](https://drive.google.com/file/d/1fR9lsi_bsI_npPFB-wZyvgjbO0V9FbMf/view?usp=sharing)
[C API](https://drive.google.com/file/d/1TErP9AfTTiWQB9E82JnwAaqFMuM82YaN/view?usp=sharing)
[Guide](https://qengineering.eu/install-tensorflow-2.2.0-on-raspberry-64-os.html) | | |
| Raspberry Pi **64-bit Bullseye** | | [Wheel](https://drive.google.com/file/d/1G2P-FaHAXJ-UuQAQn_0SYjNwBu0aShpd/view?usp=sharing)
[C API](https://drive.google.com/file/d/1GOC5CiT5Ws2NpiBem4K3g3FRqmGDRcL7/view?usp=sharing)
[Guide](https://qengineering.eu/install-tensorflow-2.7-on-raspberry-64-os.html) | [Wheel](https://drive.google.com/file/d/1xP6ErBK85SMFnQamUh4ro3jRmdCV_qDU/view?usp=sharing)
[C API](https://drive.google.com/file/d/1Z83_RQTvCb2jL2BO1Zdez3x4Qx-XheRk/view?usp=sharing)
[Guide](https://qengineering.eu/install-tensorflow-2.7-on-raspberry-64-os.html) | [Wheel](https://drive.google.com/file/d/1YpxNubmEL_4EgTrVMu-kYyzAbtyLis29/view?usp=sharing)
[C API](https://drive.google.com/file/d/1dmJKIk8lUi_XCzlVnRgL-UvfVFriRmCG/view?usp=sharing)
[Guide](https://qengineering.eu/install-tensorflow-2.7-on-raspberry-64-os.html) | [Wheel](https://drive.google.com/file/d/1FdVZ1kX5QZgWk2SSgq31C2-CF95QhT58/view?usp=sharing)
[C API](https://drive.google.com/file/d/1kScCKyj0pr265XbCgYmXqXs77xJFe6p1/view?usp=sharing)
[Guide](https://qengineering.eu/install-tensorflow-2.7-on-raspberry-64-os.html) | [Wheel](https://drive.google.com/file/d/1c-fOVdpq-o7e4DSX3HiFDD15S1WwbZK9/view?usp=sharing)
[C API](https://drive.google.com/file/d/1mlGwmX-kX288XZMQQaiIUgliexXBOVHJ/view?usp=sharing)
[Guide](https://qengineering.eu/install-tensorflow-2.6-on-raspberry-64-os.html) | | | | | | | | | |
| Raspberry Pi **64-bit Bookworm** |[C API](https://ln5.sync.com/dl/591846e30/5v4s49qe-kud8sb24-4yacpnmu-wcez9y35) | | | | | | | | | | | | | | |
| Raspberry Pi **Ubuntu 18.04** | | | | | | | | | [Wheel](https://drive.google.com/file/d/1qbjNluql9jA2HgEQnq5MYqb9XjLBMI0I/view?usp=sharing)
[C API](https://drive.google.com/file/d/1PymZ8Z4SXnBY1yRPLEaTq0IWp6UNAWR8/view?usp=sharing)
[Guide](https://qengineering.eu/install-ubuntu-18.04-on-raspberry-pi-4.html) | [Wheel](https://drive.google.com/file/d/1X2mhbsG1p_RK_rKJrLCwh3cEA0Kwv6Zr/view?usp=sharing)
[C API](https://drive.google.com/file/d/1X4JgenLejnooXuVgaSihgoip9-8XkMO6/view?usp=sharing)
[Guide](https://qengineering.eu/install-ubuntu-18.04-on-raspberry-pi-4.html) | [Wheel](https://drive.google.com/file/d/1dbmzujuQ5rTq6KykhDRlbol0oW6X1bl4/view?usp=sharing)
[C API](https://drive.google.com/file/d/1jy9wJHPWM881zm0teKBWNlpcPSw5NN_f/view?usp=sharing)
[Guide](https://qengineering.eu/install-ubuntu-18.04-on-raspberry-pi-4.html) | [Wheel](https://drive.google.com/file/d/16e8x6RtCXeRqNN6R2sWgBMAoLouvrK3G/view?usp=sharing)
[C API](https://drive.google.com/file/d/1MnFQt83H9INI7BebLsvaFWpYmLA0lVqj/view?usp=sharing)
[Guide](https://qengineering.eu/install-ubuntu-18.04-on-raspberry-pi-4.html) | [Wheel](https://drive.google.com/file/d/1kzQ11dhRaAEP-tH2mMAG_QGh7dfAlZZn/view?usp=sharing)
[C API](https://drive.google.com/file/d/1NQsCkRseh-teEljHmzMK3MnzgtBeJ6dS/view?usp=sharing)
[Guide](https://qengineering.eu/install-ubuntu-18.04-on-raspberry-pi-4.html) | | |
| Raspberry Pi **Ubuntu 20.04** | | | | | | [Wheel](https://drive.google.com/file/d/13_otGSGrsE1atBB2RjcPhOvONErKSFef/view?usp=sharing)
[C API](https://drive.google.com/file/d/1vxsDl1Xfs3ftdHs04LH6hnLuGnxG8GmW/view?usp=sharing)
[Guide](https://qengineering.eu/install-ubuntu-20.04-on-raspberry-pi-4.html) | | [Wheel](https://drive.google.com/file/d/1I1H2xMs4BTm-UQhBPuLgqnLgmE0ATRl5/view?usp=sharing)
[C API](https://drive.google.com/file/d/1uZ-WZakMQkN1ESf3mXuwcr7mbE0QZhIH/view?usp=sharing)
[Guide](https://qengineering.eu/install-ubuntu-20.04-on-raspberry-pi-4.html) | [Wheel](https://drive.google.com/file/d/1rfgF2U2oZJvQSMbGNZl8f5jbWP4fY6UW/view?usp=sharing)
[C API](https://drive.google.com/file/d/1epznEkj8Reta3Rhw9pa39WeQAnAFBmfK/view?usp=sharing)
[Guide](https://qengineering.eu/install-ubuntu-20.04-on-raspberry-pi-4.html) | [Wheel](https://drive.google.com/file/d/1uLtmdjGc-wtliRrXPf_3deUetujDKjcI/view?usp=sharing)
[C API](https://drive.google.com/file/d/1c2-3HYH-HQdvczmRNKAKE89aPYTHziul/view?usp=sharing)
[Guide](https://qengineering.eu/install-ubuntu-20.04-on-raspberry-pi-4.html) | [Wheel](https://drive.google.com/file/d/1XAXMbWuxwOcXV4fWu72uB7cMZIEocer9/view?usp=sharing)
[C API](https://drive.google.com/file/d/1vI0MgC4svD2skZtkotXZeZxhnOf_cN1N/view?usp=sharing)
[Guide](https://qengineering.eu/install-ubuntu-20.04-on-raspberry-pi-4.html) | [Wheel](https://drive.google.com/file/d/1rwUdfuk032GbFydrTmyaAfI9KixTQw3C/view?usp=sharing)
[C API](https://drive.google.com/file/d/1kC1ShrvxsXjm8b6KBPHE0l032ahYsYM5/view?usp=sharing)
[Guide](https://qengineering.eu/install-ubuntu-20.04-on-raspberry-pi-4.html) | [Wheel](https://drive.google.com/file/d/1uKa6dsyqBkuwo-BYR8GenG_56z8UGgKk/view?usp=sharing)
[C API](https://drive.google.com/file/d/1fs8ugOny-gbEtbxJ9FEaSIDCtuG5a-bi/view?usp=sharing)
[Guide](https://qengineering.eu/install-ubuntu-20.04-on-raspberry-pi-4.html) | | |
| Jetson Nano JetPack 4.6 | | | | | | | | | [Wheel](https://drive.google.com/file/d/1DLk4Tjs8Mjg919NkDnYg02zEnbbCAzOz/view?usp=sharing)
[C API](https://drive.google.com/file/d/1zJ_EF2aFkr8JU8JgTLfKMxC6KxE3DRD4/view?usp=sharing)
[Guide](https://qengineering.eu/install-tensorflow-2.4.0-on-jetson-nano.html) | [Wheel](https://drive.google.com/file/d/1W-p9oIo37xT2rQzd6KPuJq1QOBRL7-wp/view?usp=sharing)
[C API](https://drive.google.com/file/d/1ZDdkMhVu-hOt_bflVw373u1HVJQqMm51/view?usp=sharing)
[Guide](https://qengineering.eu/install-tensorflow-2.4.0-on-jetson-nano.html) | [Wheel](https://drive.google.com/file/d/1oeSnkgJpwyudtTx-f5CE84B7e-Vkv3yK/view?usp=sharing)
[C API](https://drive.google.com/file/d/1rlviefeu4w2amLsybZIOpcZP140WioDS/view?usp=sharing)
[Guide](https://qengineering.eu/install-tensorflow-2.3.1-on-jetson-nano.html) | | | | |

----------------------

![output image](https://qengineering.eu/images/SDcard16GB_tiny.jpg) Find TensorFlow with other frameworks and deep-learning examples on our [SD-image](https://github.com/Qengineering/RPi-image)

### Buster 32-bit OS
As the massive TensorFlow evolves, building it on a simple 32-bit machine is getting more and more difficult. Many tricks and workarounds are now required to compile bazel and TensorFlow. That's why the last version of TensorFlow for a 32-bit OS, is the 2.2.0 release.

### Buster 64-bit OS
TensorFlow 2.7 and higher relies on libclang 9.0.1. There is no distribution available for Debian 10. That's why there is only a TensorFlow 2.7+ installation for Debian 11, Bullseye. You could probably install libclang 9.0.1 on your Buster RPi from scratch so that you can then install TensorFlow. Be aware, the clang build takes huge resources, over 5 GB. It's better to switch to Bullseye and have TensorFlow up and running in half an hour.

### Ubuntu 18.04
TensorFlow 2.5.0 depends on h5py version 3.1.0. Unfortunately, the h5py version 3.1.0 cannot be easily installed on Ubuntu 18.04, or to be more precise, on an aarch64 with Python 3.6. See [#1760](https://github.com/h5py/h5py/issues/1760). That's why we don't have a wheel for Ubuntu 18.04. Use TensorFlow 2.4.1 or switch to Ubuntu 20.04.

### Jetson Nano
TensorFlow 2.5, 2.6 and 2.7 depend on CUDA 11.0 and cuDNN version 8.0.4, both not yet available for the Jetson Nano. A workaround is cumbersome and probably not very reliable. Better to wait for the new announced JetPack to be released with the required versions of CUDA and cuDNN. Continue to use TensorFlow 2.4.1 for now.

----------------------

### tensorflow-io-gcs
TensorFlow 2.8 and higher depends on the tensorflow-io-gcs file system. However, there is no aarch64 distribution. You have to install it on forehand manually with the following commands.
```
$ git clone https://github.com/Qengineering/Tensorflow-io.git
$ cd Tensorflow-io
$ sudo -H pip3 install tensorflow_io_gcs_filesystem-0.23.1-cp39-cp39-linux_aarch64.whl
$ cd ~
```

### TensorFlow 2.10.0
You can run into protobuffer incompatibility problems when running TensorFlow 2.10.0. as can seen on the screendum below.


![output image]( https://qengineering.eu/github/TF_2_10_Protobuf_1.png )


You have to lower the protobuf version to 3.19.0 with the command:

```
$ sudo -H pip3 install --upgrade protobuf==3.19.0
```
You may need to remove to old protobuf 4.21.2 manually before 3.19.0 becomes the default protobuf version.

Once installed, TensorFlow will work flawless.


![output image]( https://qengineering.eu/github/TF_2_10_Protobuf_2.png )

----------------------

[![paypal](https://qengineering.eu/images/TipJarSmall4.png)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=CPZTM5BB3FCYL)