环境安装
工具包
https://www.anaconda.com/
https://pytorch.org/get-started/locally/
环境建立
conda create -n pytorch python=3.8
//创建名为python的虚拟环境 python版本为3.6
# To activate this environment, use
#
# $ conda activate pytorch
#
# To deactivate an active environment, use
#
# $ conda deactivate
#No cpu
conda install pytorch torchvision torchaudio cpuonly -c pytorch
(pytorch) C:\Users\wbcde>jupyter notebook
shift + enter 下一个代码块
环境测试
import torch
print(torch.cuda.is_available())
标签:activate,python,torch,环境,pytorch,conda,安装
From: https://www.cnblogs.com/wbcde116/p/18014158