Win10 cuda9.0+python3.6+pytorch0.4.1

1.conda create -n 环境名字 python==3.6.5

2.激活环境后

pip install --target=D:\Tools\Anaconda3\envs\pytorch-gpu3.6.2 http://download.pytorch.org/whl/cu90/torch-0.4.1-cp36-cp36m-win_amd64.whl

3.安装torchvion,--no-deps忽略依赖,强制安装

pip install --no-deps --target=D:\Tools\Anaconda3\envs\pytorch-gpu3.6.2 torchvision

4.测试是否成功

import torch
torch.cuda.is_available()

你可能感兴趣的:(anoconda,深度学习,python,pytorch)