window11, WSL, Ubuntu 20.04 安装 tensorflow-gpu

一、安装指南 

window11 的wsl 的ubuntu子系统,参照ubuntu系统安装就行了。 下载ubuntu版本选择 ubuntu,不是wsl-ubuntu

Ubuntu 20.04 安装 tensorflow-gpu_ubuntu安装tensorflow-gpu_麦榛子的博客-CSDN博客1. 安装Anaconda31.1 下载安装包wget -P /tmp https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh1.2 安装bash /tmp/Anaconda3-2020.02-Linux-x86_64.sh1.3 激活 Anacondasource ~/.bashrc1.4 升级 Anacondaconda update --all1.5 Anaconda换源清华https://blog.csdn.net/weixin_44709392/article/details/123800999

二、安装过程中出现的问题

1.$ sudo sh cuda_11.2.0_460.27.04_linux.run
Failed to verify gcc version. 
See log at /var/log/cuda-installer.log for details.

Linux安装CUDA GCC版本不兼容_氵文大师的博客-CSDN博客_cuda gcc环境KALI(我估计Ubuntu也是一样的)当前NVIDIA驱动版本 455.23.05GCC版本:Debian 10.2.0-15老铁们一定是这样操作的:$ sudo sh cuda_10.2.89_440.33.01_linux.runFailed to verify gcc version. See log at /var/log/cuda-installer.log for details.然后vim查看文件/var/log/cuda-installer.log说是GCC版本不兼容https://blog.csdn.net/HaoZiHuang/article/details/109544443

答:

然后vim查看文件/var/log/cuda-installer.log
说是GCC版本不兼容,要是想忽略这个问题,请使用--override参数

于是乎就可以:

sudo sh sudo sh cuda_11.2.0_460.27.04_linux.run --override

2.g++: No such file or directory

Ubuntu20.04 NVIDIA 显卡驱动,CUDA,CuDNN安装 - 知乎

答:执行sudo apt install g++

3.编译mnistCUDNN时出错:fatal error: FreeImage.h: No such file or directory

编译mnistCUDNN时出错:fatal error: FreeImage.h: No such file or directory_勤奋的懒猫的博客-CSDN博客_freeimage.h: 没有那个文件或目录编译mnistCUDNN时出错:fatal error: FreeImage.h: No such file or directory在测试CUDNN是否正常使用时候报错测试CUDNN8.1是否正常使用1. 在https://developer.nvidia.com/rdp/cudnn-archive下载以下三个文件:2. 运行以下命令sudo dpkg -i libcudnn8_8.1.1.33-1+cuda11.2_amd64.debsudo dpkg -i libcud..https://blog.csdn.net/xhw205/article/details/116297555答: 执行sudo apt-get install libfreeimage3 libfreeimage-dev

三、相关参考

1.Ubuntu20 + rtx3090,安装驱动以及cudahttps://www.cnblogs.com/JJJJJJz/articles/16076134.html

2.ubuntu 20.04 安装 cuda11.2 和cudnn8.2.1和pytorch1.10.0和tensorflow2.7.0(可能是最简单的安装方法,本人亲测成功)

ubuntu 20.04 安装 cuda11.2 和cudnn8.2.1和pytorch1.10.0和tensorflow2.7.0(可能是最简单的安装方法,本人亲测成功)_林场02的博客-CSDN博客

猜你喜欢

转载自blog.csdn.net/m0_37870649/article/details/129034727
今日推荐