gpt4 book ai didi

ubuntu - ubuntu 中的 luarocks 错误 : No results matching query were found.

转载 作者:太空宇宙 更新时间:2023-11-03 16:50:57 28 4
gpt4 key购买 nike

我是 Lua 的新手。这是我在我的新虚拟 Ubuntu 上所做的。首先,我安装从他们的官方网站下载的 lua-5.3.4。

make linux
make install

这是 README.md依赖库建议我这样做。

luarocks install torch
luarocks install nn
luarocks install dpnn
luarocks install torchx
luarocks install rnn

但是,无论我在哪里使用它们,它总是返回此错误消息。

Error: No results matching query were found.

所以我按照我在此处找到的建议从 http://torch.ch/docs/getting-started.html 安装手电筒

我就是这样

git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch; bash install-deps;
./install.sh
source ~/.bashrc

所有这些命令都在 mycount 下

vera@ubuntu:~/Documents/relation inference$

然后我再次尝试安装依赖并再次失败。

sudo luarocks install rnn
sudo luarocks install nn
sudo luarocks install torch

我通过 sudo su 切换到根计数。然后,当我再次执行 luarocks install nn 时。我明白了:

root@ubuntu:/home/vera/Documents/relation inference# luarocks install nn
Installing https://rocks.moonscript.org/nn-1.0.4-1.src.rock...
Using https://rocks.moonscript.org/nn-1.0.4-1.src.rock... switching to 'build' mode
gcc -O2 -fPIC -I/usr/include/lua5.1 -c lnn.c -o lnn.o
lnn.c:4:23: fatal error: nanomsg/nn.h: 没有那个文件或目录(this means :no that file or the dict)
compilation terminated.

Error: Build error: Failed compiling object lnn.o

虽然我在 root 下使用其他命令,但仍然得到相同的错误消息。

root@ubuntu:/home/vera/Documents/relation inference# luarocks install rnn
Error: No results matching query were found.

root@ubuntu:/home/vera/Documents/relation inference# luarocks install torch
Error: No results matching query were found.

root@ubuntu:/home/vera/Documents/relation inference# luarocks install torch7-master
Error: No results matching query were found.

我已经从 GitHub 下载了依赖。

最佳答案

要解决它,请按照以下步骤操作:

sudo apt install luarocks
sudo ~/torch/install/bin/luarocks install nn

关于ubuntu - ubuntu 中的 luarocks 错误 : No results matching query were found.,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42605658/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com