官方安装网站:http://torch.ch/docs/getting-started.html
我的安装命令
1、在终端输入:
git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch; bash install-deps;
./install.sh 等待一小时左右,取决于网速。
2、然后输入
source ~/.profile 注意:如果此时提示
No such file or directory
则在同torch文件夹的目录(我的torch文件夹在/User/myusername/torch, myusername是你的用户名),所以应该在/User/myusername/目录下输入:
$touch .profile

这篇博客详细介绍了在Mac OS X上安装Torch的步骤,包括从官方网站获取安装信息,通过终端运行特定命令创建并编辑.profile文件,将Torch添加到路径,最后验证Torch和Lua的安装是否成功。
最低0.47元/天 解锁文章
1784

被折叠的 条评论
为什么被折叠?



