本文介绍了运行Torch/Lua时出错,可能是安装错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照 http://torch.ch/docs/getting-started.html .

但是,当我运行"th"之类的代码或任何简单的代码时,出现以下错误消息:

However, when I run things like "th" or any simple code, I got the following error message:

/Users/JianxuChen/torch/install/bin/luajit:... rs/JianxuChen/torch/install/share/lua/5.1/trepl/init.lua:692:尝试调用字段'setheaptracking'(a零值)堆栈回溯: ... rs/JianxuChen/torch/install/share/lua/5.1/trepl/init.lua:692:在主要块中 [C]:在函数需要"中 ...陈/火炬/安装/lib/luarocks/rocks/trepl/scm-1/bin/th:104:在主要块中 [C]:位于0x01089f8bc0

/Users/JianxuChen/torch/install/bin/luajit: ...rs/JianxuChen/torch/install/share/lua/5.1/trepl/init.lua:692: attempt to call field 'setheaptracking' (a nil value)stack traceback: ...rs/JianxuChen/torch/install/share/lua/5.1/trepl/init.lua:692: in main chunk [C]: in function 'require' ...Chen/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:104: in main chunk [C]: at 0x01089f8bc0

有没有人遇到过类似的问题,或者对解决该问题有任何想法?

Does anyone have ever encountered similar issue, or have any idea about how to solve it?

谢谢!

推荐答案

我遇到了同样的问题,并以这种方式解决了.您的割炬不是最新版本.我不执行此操作 http://torch.ch/docs/getting-started.html .而是下载 https://github.com/torch/distro 并运行./install.然后就可以了!

I met the same problem and solved it in this way. Your torch is not the latest version. What I do is NOT follow this http://torch.ch/docs/getting-started.html. Instead download https://github.com/torch/distro and run ./install. Then it works!

这篇关于运行Torch/Lua时出错,可能是安装错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 00:56