赞
踩
构建环境(储存在E:/anaconda/envs/PyTorch)conda activate PyTorch
安装已下载的whl:E:
cd pytorch1.0.0
pip install “torch-1.0.0-cp37-cp37m-win_amd64.whl”
安装torchvision:pip install torchvision==0.4.1
验证:python
import torch
import torchvision
print(torch.version)
print(torch.cuda.is_available())
卸载:pip uninstall torch
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。