需要注意的是,nano上的jetpack版本是4.5
source activate py36
sudo apt-get install python3-scipy
sudo apt-get install python3-pandas
sudo apt-get install python3-sklearn
sudo apt-get install libhdf5-serial-dev hdf5-tools
sudo pip3 install Cython
sudo pip3 install absl-py==0.7.0
sudo pip3 install gast==0.2.2
sudo pip3 install protobuf==3.11.2
sudo pip3 install wrapt==1.11.2
sudo pip3 install astor==0.8.1
sudo pip3 install google-pasta=0.1.8
安装这些包参考了
https://zhuanlan.zhihu.com/p/98459357
然后按照链接
把几个包也都安装一下
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v45 tensorflow==1.15.5+nv21.02
测试
python
import tensorflow as tf
print(tf.__version__)
sess = tf.Session()
a = tf.constant(1)
b = tf.constant(2)
print(sess.run(a+b))