其他分享
首页 > 其他分享> > .whl文件安装cuda10.0版本的pytorch1.3.0+torchvision0.4.1

.whl文件安装cuda10.0版本的pytorch1.3.0+torchvision0.4.1

作者:互联网

$ python3 -m venv env3
$ source env3/bin/activate
$ cd env3/share/python-wheels

在此找到对应的版本:https://download.pytorch.org/whl/cu100/torch_stable.html
$ wget https://download.pytorch.org/whl/cu100/torch-1.3.0%2Bcu100-cp36-cp36m-linux_x86_64.whl
$ wget https://download.pytorch.org/whl/cu100/torchvision-0.4.1%2Bcu100-cp36-cp36m-linux_x86_64.whl
$ pip install torch-1.3.0+cu100-cp36-cp36m-linux_x86_64.whl torchvision-0.4.1+cu100-cp36-cp36m-linux_x86_64.whl
>>>>>Processing ./torch-1.3.0+cu100-cp36-cp36m-linux_x86_64.whl
>>>>>Processing ./torchvision-0.4.1+cu100-cp36-cp36m-linux_x86_64.whl
>>>>>Collecting numpy (from torch==1.3.0+cu100)
>>>>>...................................................................
>>>>>Successfully installed numpy-1.17.3 pillow-6.2.1 six-1.12.0 torch-1.3.0+cu100 torchvision-0.4.1+cu100
$ python
$ import torch
>>> print(torch.version.cuda)
10.0.1

标签:x86,whl,torch,cu100,64,pytorch1.3,torchvision0.4,cp36
来源: https://blog.csdn.net/agonysome/article/details/118973171