ubuntu 16.04安装torch 7 深度学习框架
1.安装方式
可以从官网下载对应cuda版本的
也可以通过代码克隆的方法
git clone https://github.com/torch/distro.git torch --recursive
2.安装依赖
cd torch/
sudo bash install-deps
依赖安装成功界面
==> Torch7’s dependencies have been installed
3.编译安装
sudo ./install.sh
如果显示安装成功,不报错就没有问题
显示如下界面Do you want to automatically prepend the Torch install location
to PATH and LD_LIBRARY_PATH in your /home/qinghua/.bashrc? (yes/no)
输入yes
配置环境变量
输入
source ~/.bashrc
输入
th
出现
______ __ | Torch7
/_ __/__ ________/ / | Scientific computing for Lua.
/ / / _ \/ __/ __/ _ \ | Type ? for help
/_/ \___/_/ \__/_//_/ | https://github.com/torch
| http://torch