手动安装:
$ # in a terminal, run the commands
$ git clone https://github.com/torch/distro.git ~/torch --recursive
$ cd ~/torch; bash install-deps;
$ ./install.sh
-------------------------
$ source ~/torch/install/bin/torch-activate
-------------------------
$ th
______ __ | Torch7
/_ __/__ ________/ / | Scientific computing for Lua.
/ / / _ \/ __/ __/ _ \ | Type ? for help
/_/ \___/_/ \__/_//_/ | https://github.com/torch
| http://torch.ch
th> torch.Tensor{5,6,7}
5
6
7
[torch.DoubleTensor of size 3]
退出 th>
os.exit()