Torch 从本地安装模块

Posted chenxp2311

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Torch 从本地安装模块相关的知识,希望对你有一定的参考价值。

Linux 无法联网,需要从本地安装 loadcaffe。仅仅需要一步就够:

下载 loadcaffe 到本地,进入 loadcaffe 目录:

$ luarocks make

即会自动编译安装。

注意有时候安装到 /usr/local 下面的 torch,这时候会要 sudo 权限。

参考:
1. http://leafo.net/guides/customizing-the-luarocks-tree.html
2. http://stackoverflow.com/questions/12253165/lua-install-a-rock-using-luarocks-from-a-locally-installed-rock-or-from-a-zip

以上是关于Torch 从本地安装模块的主要内容,如果未能解决你的问题,请参考以下文章