【发布时间】:2023-04-02 14:52:01
【问题描述】:
问题
我无法安装特定的 Luarocks。 我想使用 CNN 确定 3D 手部扫描的关键点。因此,我想让V2V-PoseNet 运行。但是,我遇到一个问题,研究员suggested我试试:
$luarocks install cutorch
$luarocks install cunn
不幸的是,我收到了我没有写入权限的错误。使用sudo 执行时,我得到:
Error: No results matching query were found.
我尝试过的
我已经正确安装了 Torch(th 有效)并且我对 Luarocks 进行了全新安装:
$th
______ __ | Torch7 / Debian
/_ __/__ ________/ / | Scientific computing for Lua.
/ / / _ \/ __/ __/ _ \ | Type ? for help
/_/ \___/_/ \__/_//_/ | https://github.com/torch
| http://torch.ch
th>^C^C
$sudo apt-get install luarocks
然后尝试安装岩石:
$sudo luarocks install cutorch
$sudo luarocks install cunn
没有 sudo 命令,它不起作用。上面的安装命令都返回Error: No results matching query were found。有类似问题的人是suggested 手动安装岩石。如果我手动下载cutorch-master,从文件夹 /rocks 启动终端并运行
$luarocks install cutorch-1.0-0.rockspec
我收到我的用户“在 /usr/local/lib/luarocks/rocks 中没有写入权限”的错误。当我尝试使用sudo 安装时,我得到Missing dependencies for cutorch 1.0-0: torch >= 7.0 (not installed)。我尝试修改 .bashrc,但没有成功,虽然我同时能够修复它。
顺便说一下,Lua本身是安装好的:
$lua
Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio
安装
我从 Ubuntu 18.04 运行它。
我的问题
如何使用 Luarocks 安装 cutorch 和 cunn?
【问题讨论】: