Win10+Anaconda搭建torch1.3.1gpu环境使用jupyter notebook

在Anaconda搭建虚拟环境

conda create -n py37_torch131 python=3.7

Win10+Anaconda搭建torch1.3.1gpu环境使用jupyter notebook_第1张图片
激活环境并从清华源加载所需的库

conda activate py37_torch131
conda install pytorch=1.3.1 torchvision cudatoolkit=10.0 
pip install jupyter tqdm opencv-python matplotlib pandas -i https://pypi.tuna.tsinghua.edu.cn/simple

使用jupyter notebook

jupyter-notebook
import torch
import torchvision
print(torch.__version__)
print(torch.cuda.is_available())

你可能感兴趣的:(一些基础分享,anaconda,gpu,深度学习)