ubuntu 下3080Ti 环境配置记录

12 篇文章 0 订阅
11 篇文章 0 订阅

ubuntu 下3080Ti 环境配置记录

1.torch1.7.0

//创建环境
conda create -n ENV1 python=3.7
#创建完成后进入环境
conda activate ENV1
#安装pytorch
pip install torch==1.7.0+cu110 torchvision==0.8.1+cu110 torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html
#pip超时,加上timeout的时间
pip install --default-timeout=1000 torch==torch1.7.0+cu110 torchvision==0.8.1+cu110 torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html
//conda 下安装cuda
conda install cudatoolkit=11.0 -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/linux-64/
//conda 下安装cudnn
conda install cudnn=8.0.5 -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/linux-64/
//不写版本会自动选版本与cuda版本相匹配
conda install cudnn

在这里插入图片描述

统一存放在envs/ENV1/lib or include 文件夹下:
在这里插入图片描述

在这里插入图片描述

命令行查看虚拟环境cuda版本,具体对应可以pytorch官网

//命令行查看虚拟环境cuda版本
conda list | grep cuda

命令行查看虚拟环境cuda版本,具体对应可以pytorch官网

1.torch1.7.1

//创建环境
conda create -n ENV2 python=3.6
#创建完成后进入环境
conda activate ENV2
#安装pytorch
pip install torch==torch1.7.1+cu110 torchvision==0.8.2+cu110 torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html
#pip超时,加上timeout的时间
pip install --default-timeout=1000 torch==torch1.7.1+cu110 torchvision==0.8.2+cu110 torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html

在这里插入图片描述

1.torch1.10.1

//创建环境
conda create -n ENV3 python=3.7
#创建完成后进入环境
conda activate ENV3
#安装pytorch
pip install torch==torch1.10.1+cu102  torchvision==0.11.2+rocm4.2 -f https://download.pytorch.org/whl/torch_stable.html
#pip超时,加上timeout的时间
pip install --default-timeout=1000 torch==torch1.10.1+cu102  torchvision==0.11.2+rocm4.2 -f https://download.pytorch.org/whl/torch_stable.html

在这里插入图片描述

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值