【Linux】conda 使用 workflow

Tensorflow

python、tf 的版本根据需求选择。cudatoolkit 与本地 cuda 的版本相同,tf 必须安装 cudnn。

conda create -n tensor1.13 python=3.7
source activate tensor1.13
conda install cudatoolkit=10.0 cudnn
conda install tensorflow-gpu==1.13.1
python -c "import tensorflow as tf;print(tf.test.is_gpu_available())"

输出 True 则基本成功

Pytorch

在 PyTorch 的官网 https://pytorch.org/ ,根据需要选择,获得合适的 PyTorch 安装命令

conda create -n torch python=3.6
source activate torch
conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch
python -c "import torch;print(torch.cuda.is_available())"

输出 True 则基本成功

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值