MAC install torch
参考:
官网:http://torch.ch/docs/getting-started.html
Debug:http://stackoverflow.com/questions/29584422/installing-torch7-ipython-installation-error-mac
过程:
# in a terminal, run the commands WITHOUT sudo
git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch; bash install-deps;
./install.sh
报错:
Not updating your shell profile.
You might want to
add the following lines to your shell profile:
. /Users/***/torch/install/bin/torch-activate
解决(其中*** 表示你的用户名):
cd /Users/***
vim .profile
insert . /Users/***/torch/install/bin/torch-activate
:wq
source .profile
运行:
$ th
______ __ | Torch7
/_ __/__ ________/ / | Scientific computing for Lua.
/ / / _ \/ __/ __/ _ \ | Type ? for help
/_/ \___/_/ \__/_//_/ | https://github.com/torch
| http://torch.ch
th>
work!!!