码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2019-11-01 18:25:44      阅读:673      评论:0      收藏:0      [点我收藏+]

标签:get   numpy   cuda   version   pytorch   har   pil   activate   tin   

$ python3 -m venv env3
$ source env3/bin/activate
$ cd env3/share/python-wheels
$ 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

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

标签:get   numpy   cuda   version   pytorch   har   pil   activate   tin   

原文地址:https://www.cnblogs.com/jeshy/p/11778283.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!