Linux or Mac OS 下安装PyTorch
2017-02-20 本文已影响2415人
kelseyh
我在MacOS下安装torch一直不成功,所以用虚拟机运行Linux,在Linux下安装了Torch以及PyTorch。
1. 安装Torch
2. 安装PyTorch
trask的文章:Tutorial: Deep Learning in PyTorch
把里面的pip全部改成sudo pip
3. 安装Jupyter Notebook
Jupyter Notebook(此前被称为 IPython notebook)是一个交互式笔记本,支持运行 40 多种编程语言。
Jupyter官方安装教程,推荐使用Anaconda进行安装
4. 运行Jupyter Notebook
在terminal中输入:jupyter notebook
接着就会自动打开网页

然后在new一个python的notebook

然后就可以写代码了:
