0
点赞
收藏
分享

微信扫一扫

蓝桥杯 Java 青蛙过河

清华源帮助链接:https://mirror.tuna.tsinghua.edu.cn/help/anaconda/
下载链接:https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/

文章目录

一、anaconda / miniconda 安装

1.1 下载到linux

如果wget命令为安装,直接windows下载后复制过去

wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-py38_4.9.2-Linux-x86_64.sh

下载界面
在这里插入图片描述

1.2 安装过程

sh Miniconda3-py38_4.9.2-Linux-x86_64.sh 

在这里插入图片描述

空格跳过 + yes

在这里插入图片描述
同意协议
输入yes
在这里插入图片描述

选择安装位置(可默认)

在这里插入图片描述

初始化 conda + yes

否则需要自己输入环境变量
在这里插入图片描述
命令会自动写入 ~/.bashrc 否则需要手动添加,
在这里插入图片描述

1.3 安装完成+切换国内源

查看conda命令是否能用

conda

在这里插入图片描述

conda 添加国内源


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/conda-forge/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch

conda config --set show_channel_urls yes

pip添加国内的源

添加百度的链接

pip config set global.index-url  https://mirror.baidu.com/pypi/simple
pip config set global.trusted-host mirror.baidu.com

其他国内

阿里云镜像源 
https://mirrors.aliyun.com/pypi/simple/
清华大学镜像源 
https://pypi.tuna.tsinghua.edu.cn/simple/
#  腾讯
pip config set global.index-url http://mirrors.cloud.tencent.com/pypi/simple
pip config set global.trusted-host mirrors.cloud.tencent.com

二、安装 cudnn (任何框架都需要)

3090TI+ cuda11.8 + cudnn 8.6.0+
cuda驱动+CUDA Toolkit 已经由运维安装好了,具体可以搜索其他教程.

在这里插入图片描述

下载cudnn

下载:https://developer.nvidia.com/cudnn
官方指南: https://docs.nvidia.com/deeplearning/cudnn/install-guide/
下载后传到服务器,也可直接下载
在这里插入图片描述

在服务器解压
 tar -xvf cudnn-linux-x86_64-8.6.0.163_cuda11-archive.tar.xz

解压过程截图
在这里插入图片描述

复制到系统库
cd cudnn-linux-x86_64-8.6.0.163_cuda11-archive
sudo cp include/cudnn*.h /usr/local/cuda/include 
sudo cp -P lib/libcudnn* /usr/local/cuda/lib64 
sudo chmod a+r /usr/local/cuda/include/cudnn*.h /usr/local/cuda/lib64/libcudnn*

三、 深度学习框架paddle安装

官方文档:https://www.paddlepaddle.org.cn/install/quickdocurl=/documentation/docs/zh/install/pip/linux-pip.html

官方安装说明

在这里插入图片描述

paddle选择合适的版本

在这里插入图片描述

python3 -m pip install paddlepaddle-gpu==2.5.1 -i https://mirror.baidu.com/pypi/simple

验证安装,

直接在bash上输入

python 
import paddle
paddle.utils.run_check()

在这里插入图片描述

如果没正确安装cudnn会报错

在这里插入图片描述

举报

相关推荐

0 条评论