1.首先,安装python等等
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get install python3.5 libpython3.5-dev python3-pip python3-dev
2.下载编译好的tensorflow
https://github.com/lhelontra/tensorflow-on-arm/releases
选择版本tensorflow-1.13.1-cp35-none-linux_aarch64.whl
3.安装
sudo python3.5 -m pip install tensorflow-1.13.1-cp35-none-linux_aarch64.whl
4.可能出现的错误
hdf5.h:No such file or directory
解决方法:
sudo apt-get install libhdf5-serial-dev