安装pytorch以及出错处理办法

http://pytorch.apachecn.org/有安装办法.

windows python3.6 ,3.5环境

conda install pytorch-cpu -c pytorch 
pip3 install torchvision

linux 环境 下

python2.7  conda install pytorch-cpu torchvision-cpu -c pytorch  cuda:8 conda install pytorch torchvision -c pytorch;conda install pytorch torchvision cuda91 -c pytorch ;conda install pytorch torchvision cuda90 -c pytorch 

python3.  conda install pytorch-cpu torchvision-cpu -c pytorch   cuda: conda install pytorch torchvision cuda91 -c pytorch

osx  pip3 install torch torchvision 

在centos7及oxs  python36下安装pytorch都失败了,经检查,torch依赖的numpy版本较低,卸载已安装的,

 pip3  install numpy

pip3  install numpy==1.14.3

pip3  install torch torchvision 

centos与OSX建议直接下载源码编译。

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值