首先安装好ananconda之后,通过命令conda create -n your_env_name python=3.6 创建虚拟环境。
添加清华源:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda config --set show_channel_urls yes
安装cuda:
conda install cudatoolkit=8.0 -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/linux-64/
安装cudnn:
conda install cudnn=7.0.5 -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/linux-64/
每个不同镜像网站里面包含各种不同的下载包,可根据自己的需求打开查找对应的安装包,
如cudatoolkit 8.0.3 在https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/linux-64/内,
则安装命令如:conda install cudatoolkit=8.0 -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/linux-64/ 即可
本文详细介绍如何使用Anaconda创建Python虚拟环境,并配置清华源加速软件包下载。此外,还提供了安装CUDA和CuDNN的具体步骤,包括指定版本和镜像网站,以满足深度学习和GPU计算的需求。
2725

被折叠的 条评论
为什么被折叠?



