ubuntu安装pytorch以及torchnet

http://pytorch.org/
转自http://blog.csdn.net/amds123/article/details/69396953
conda

cuda7.5 
conda install pytorch torchvision -c soumith

cuda8.0 
conda install pytorch torchvision cuda80 -c soumith


pip

cuda7.5

python2.7
pip install http://download.pytorch.org/whl/cu75/torch-0.1.11.post5-cp27-none-linux_x86_64.whl 
pip install torchvision 

python3.5
pip install http://download.pytorch.org/whl/cu75/torch-0.1.11.post5-cp35-cp35m-linux_x86_64.whl 
pip install torchvision

python3.6

pip install http://download.pytorch.org/whl/cu75/torch-0.1.11.post5-cp36-cp36m-linux_x86_64.whl
pip install torchvision


cuda8.0

python2.7

pip install http://download.pytorch.org/whl/cu80/torch-0.1.11.post5-cp27-none-linux_x86_64.whl
pip install torchvision

python3.5
pip install http://download.pytorch.org/whl/cu80/torch-0.1.11.post5-cp35-cp35m-linux_x86_64.whl
pip install torchvision

python3.6
pip install http://download.pytorch.org/whl/cu80/torch-0.1.11.post5-cp36-cp36m-linux_x86_64.whl
pip install torchvision

安装torchnet 参考https://github.com/pytorch/tnt
上面一系列装好之后,发现在python中还是没办法import torchnet
首先得Make sure you have PyTorch installed, then do:

 

pip install git+https://github.com/pytorch/tnt.git@master

应该ok了,至于torch,我一直很奇怪,和pytorch还是有点区别的

 

pip install --upgrade git+https://github.com/pytorch/tnt.git@master

安装Pytorch的最好方式就是去官网查看

https://pytorch.org/
 

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值