jetpack3.3版本下对应的TensorFlow 版本: 1.13.1
#安装依赖
$ sudo apt-get install libhdf5-serial-dev hdf5-tools libhdf5-dev zlib1g-dev zip libjpeg8-dev
# 安装pip3并对其升级
$ sudo apt-get install python3-pip
$ sudo pip3 install -U pip
# 安装python包
$ sudo pip3 install -U numpy grpcio absl-py py-cpuinfo psutil portpicker six mock requests gast h5py astor termcolor protobuf keras-applications keras-preprocessing wrapt google-pasta
# 安装tensorflow,其中v33代表的是jetpack3.3,如果改成v32代表jetpack3.2.1
$ sudo pip3 install --pre --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v33 tensorflow-gpu
测试
查看版本
ubuntu@AiROS:~/dl$ python3
>>> import tensorflow
>>> print(tensorflow.__version__)
1.14.0
输出字符串
ubuntu@AiROS:~/dl$ python3
>>> import tensorflow as tf
>>> hello = tf.constant(‘Hello, TensorFlow!’)
>>> sess = tf.Session()
>>> print(sess.run(hello))
b'hello, Tensorflow!'