TensorFlow-Raspberry-Pi_64-bit icon indicating copy to clipboard operation
TensorFlow-Raspberry-Pi_64-bit copied to clipboard

Tensorflow 2.7 Buster/Bullseye

Open barthm1 opened this issue 4 years ago • 3 comments

sudo -H pip3 install tensorflow-2.7.0-cp39-cp39-linux_aarch64.whl Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Processing ./tensorflow-2.7.0-cp39-cp39-linux_aarch64.whl Collecting google-pasta>=0.1.1 Downloading https://www.piwheels.org/simple/google-pasta/google_pasta-0.2.0-py3-none-any.whl (57 kB) |████████████████████████████████| 57 kB 835 kB/s Requirement already satisfied: h5py>=2.9.0 in /usr/local/lib/python3.9/dist-packages (from tensorflow==2.7.0) (3.1.0) Requirement already satisfied: wrapt>=1.11.0 in /usr/lib/python3/dist-packages (from tensorflow==2.7.0) (1.12.1) Collecting flatbuffers<3.0,>=1.12 Downloading https://www.piwheels.org/simple/flatbuffers/flatbuffers-2.0-py2.py3-none-any.whl (26 kB) Requirement already satisfied: six>=1.12.0 in /usr/lib/python3/dist-packages (from tensorflow==2.7.0) (1.16.0) ERROR: Could not find a version that satisfies the requirement tensorflow-io-gcs-filesystem>=0.21.0 (from tensorflow) ERROR: No matching distribution found for tensorflow-io-gcs-filesystem>=0.21.0

Same error on both OS versions

barthm1 avatar Nov 27 '21 09:11 barthm1

Dear @barthm1,

Sorry for the inconvenience. We hadn't got the time to validate the installation yet. However, Sebastijan mentioned the same issue. Here is his solution.

I have RPI 4, installed 64bit Bullseye. I tried to install tensorflow following your guide for python 3.9 and tensorflow 2.7.0 and got message:

ERROR: Could not find a version that satisfies the requirement tensorflow-io-gcs-filesystem>=0.21.0 (from tensorflow) (from versions: none)
ERROR: No matching distribution found for tensorflow-io-gcs-filesystem>=0.21.0

I think your .whl is missing tensorflow_io_gcs_filesystem package.

Had to download and build tensorflow-io-0-22-0
Execute command:
python -m build
python setup.py -q bdist_wheel --project tensorflow_io_gcs_filesystem

Finally last command created tensorflow_io_gcs_filesystem-0.22.0-cp39-cp39-linux_aarch64.whl in dist folder, which I manually installed with pip. After that installing tensorflow 2.7.0 was a breeze.
I am noob with python packages and all, but you can make something out of it. I hope I helped a bit.

Qengineering avatar Nov 27 '21 09:11 Qengineering

The next problem arises with libclang 9.0.1 - I installed 11.0.0 - but this doesn't work

barthm1 avatar Nov 29 '21 14:11 barthm1