-
Notifications
You must be signed in to change notification settings - Fork 7
How to install TensorFlow
t-kuha edited this page Feb 26, 2022
·
1 revision
- Install pre-build binaries from Linaro
- make sure to get the one that matches the Python version
# need to update the clock time to avoid error during installation
root@u96v2_vai:~# date --set <current time>
# make temporary directory to avoid "[Errno 28] No space left on device"
root@u96v2_vai:~# mkdir $(pwd)/tmp
# install some dependency packages
root@u96v2_vai:~# wget https://snapshots.linaro.org/ldcg/python/tensorflow-manylinux/44/grpcio/grpcio-1.37.1-cp38-cp38-manylinux2014_aarch64.whl
root@u96v2_vai:~# pip3 install grpcio-1.37.1-cp38-cp38-manylinux2014_aarch64.whl
# install TensorFlow
root@u96v2_vai:~# wget https://snapshots.linaro.org/ldcg/python/tensorflow-manylinux/44/tensorflow-aarch64/tensorflow_aarch64-2.7.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
root@u96v2_vai:~# TMPDIR=$(pwd)/tmp pip3 install tensorflow_aarch64-2.7.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
# check if TensorFlow works
root@u96v2_vai:~# python3 -c "import tensorflow as tf;print(tf.__version__)"
2.7.1