1.安转cuda和cudnn
参考:https://blog.csdn.net/fdqw_sph/article/details/78745375
2.安装pip3
sudo apt-get install python3-pip
3.安装tensorflow-GPU 1.7
sudo pip3 install tensorflow_gpu==1.7 -i https://pypi.tuna.tsinghua.edu.cn/simple
4.安装opencv
pip3 install opencv-python