ubuntu 16.04 cuda10 cudnn pytorch1.2

安装ubuntu:

/ 20G /boot 1G /tmp 10G(第一遍小了出了问题) /swap 10G 剩余的全给了/home

在设置->更新里面调整为aliyun源

 

显卡驱动安装:

https://blog.csdn.net/DongZhuoHui/article/details/97913269

 

cudnn安装
原文链接:https://blog.csdn.net/qq_40157728/article/details/104003794

(1)官网下载
cuDNN 7.6.5.32官网下载地址
注册后下载这三个东西,其实就是对应于ubuntu16.04的deb文件都下载下来:
cuDNN Runtime Library for Ubuntu16.04 (Deb)
cuDNN Developer Library for Ubuntu16.04 (Deb)
cuDNN Code Samples and User Guide for Ubuntu16.04 (Deb)

(2)之后完全按照官网教程安装和测试即可

 

anaconda安装:

官网下载,安装

添加清华源:https://blog.csdn.net/watermelon1123/article/details/88122020


pytorch安装

https://blog.csdn.net/qq_38451119/article/details/81532779

我直接用的官网提供的命令https://pytorch.org/get-started/previous-versions/

但是这里一定要注意,去掉-c pytorch,安装的时候才会默认从清华源下载相应的包

conda install pytorch==1.2.0 torchvision==0.4.0 cudatoolkit=10.0 -c pytorch

几个下载比较慢的包,下载好移到linux下

https://files.pythonhosted.org/packages/07/08/a549ba8b061005bb629b76adc000f3caaaf881028b963c2e18f811c6edc1/numpy-1.18.2-cp36-cp36m-manylinux1_x86_64.whl 

https://files.pythonhosted.org/packages/24/19/4804aea17cd136f1705a5e98a00618cb8f6ccc375ad8bfa437408e09d058/torch-1.4.0-cp36-cp36m-manylinux1_x86_64.whl

https://files.pythonhosted.org/packages/72/c2/e9cf54ae5b1102020ef895866a67cb2e1aef72f16dd1fde5b5fb1495ad9c/opencv_python-4.2.0.34-cp36-cp36m-manylinux1_x86_64.whl

https://mahongfei.com/1776.html

 

你可能感兴趣的:(cv)