Reprint please specify the source:
Http://www.cnblogs.com/darkknightzh/p/5653864.html
Reference URL:
Http://torch.ch/docs/getting-started.html
1. Install luarocks First
sudo Install Luarocks
2. installing Torch
(http://torch.ch/docs/getting-started.html)
1) Input in terminal:
git clone https://Install-deps;. /Install. SH
Description: ~/torch should be the current folder of the terminal (the default is /home/xxx/, add ~/torch after it becomes /home/xxx/torch)
2) Add torch to Path
SOURCE ~/.BASHRC
3) If necessary, uninstall torch
RM -RF ~/torch
Description : The torch and Luajit are installed above, if you want to install torch and Lua5.2 instead of Luajit:
git clone https://github.com/torch/distro.git ~/torch--recursivecd ~/torch# clean Old Torch Installation. /clean. SH # Optional Clean command (for-s https://raw.githubusercontent.com/torch/ ezinstall/master/clean-old.sh | Bash# https:///Github.com/torch/distro:set envto use LUA torch_lua_version=lua52 ./Install. SH
5) After installing torch, enter th:
3. Install the Torch Package (packages), such as nn and DPNN
Description: Install the NN first, then install the DPNN
1) Download nn and DPNN:
Https://github.com/torch/nn
Https://github.com/nicholas-leonard/dpnn
2) unzip the two folders.
3) in the terminal CD to these two folders on the first level directory.
4) Install using the luarocks Install command
Install nn-master/rocks/nn-scm-1Install dpnn-master/rocks/dpnn-scm- 1. Rockspec
Note:① official website said that the installation is done directly using the command luarocks install DPNN , but will prompt:
No results matching query were found
②nn and DPNN all have dependent packages that need to be installed first. What is the specific, forget ... But DPNN relies on more than NN.
③ website says you can use luarocks to install packages in the terminal, such as:
Install image
However, if the installation fails, follow the steps in ①-④ 3, download it first, and then install ...
④ See which packages are installed:
Luarocks List
(formerly) installed Torch7 and NN and dpnn on Ubuntu