参考:http://torch.ch/docs/getting-started.html
1. 下载torch
git clone https://github.com/torch/distro.git ~/torch --recursive
不要去对应网站上下载(https://github.com/torch/distro.git),不太靠谱,亲测!!! 直接运行上述指令代码就行.
漫长的等待后下载完成.
2. 安装torch
2.1 进入torch目录,执行:bash install-deps,安装必要依赖项
2.2 执行: ./install.sh
然后还是"漫长"的等待........输入yes
在~/.bashrc文件最后加入:
输入th,检测安装情况:
ok!!!