[work]pytorch win10 安装

0x00 文章来由

已有安装教程:http://blog.csdn.net/xiangxianghehe/article/details/78736482

GitHub:https://github.com/peterjc123/pytorch-scripts

这篇文章只记录我的安装过程

0x01 创建虚拟环境

conda create -n pytorch python=3.5 numpy pyyaml mkl cffi

由此可见,我们创建的环境是 python 3.5 的

0x02 Install

简便安装如下:

If you just want to install PyTorch as soon as possible. You'll need Anaconda first. And then type in the following commands.

# If your main Python version is not 3.5 or 3.6
conda create -n test python=3.6 numpy pyyaml mkl

# for CPU only packages
conda install -c peterjc123 pytorch

# for Windows 10 and Windows Server 2016, CUDA 8
conda install -c peterjc123 pytorch cuda80

# for Windows 10 and Windows Server 2016, CUDA 9
conda install -c peterjc123 pytorch cuda90

# for Windows 7/8/8.1 and Windows Server 2008/2012, CUDA 8
conda install -c peterjc123 pytorch_legacy cuda80

复杂安装有 bz2 或者 whl 两种安装方式

进入百度盘:https://pan.baidu.com/s/1dF6ayLr#list/path=/,或者 https://drive.google.com/drive/folders/0B-X0-FlSGfCYdTNldW02UGl4MXM,下载对应的安装包

bz2 方式

conda install --offline pytorch-0.1.12-py36_0.1.12cu80.tar.bz2 #离线安装

详见:http://blog.csdn.net/xiangxianghehe/article/details/73500031

whl 方式

我采用这种方法安装

# For Python 3.5
pip install torch-0.3.0b0.591e73e-cp35-cp35m-win_amd64.whl
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值