在Ubuntu 16.04上按照标准命令安装Lua和其他依赖项:
conda install lua=5.2 lua-science -c alexbw
该行出现错误:
require 'cudnn'
错误是: `
/home/parth/miniconda3/envs/fastai-tf/bin/lua: ...h/miniconda3/envs/fastai-tf/share/lua/5.2/trepl/init.lua:384: module 'cudnn' not found:No LuaRocks module found for cudnn
no field package.preload['cudnn']
no file '/home/ubuntu/.luarocks/share/lua/5.2/cudnn.lua'
no file '/home/ubuntu/.luarocks/share/lua/5.2/cudnn/init.lua'
no file '/home/parth/miniconda3/envs/fastai-tf/share/lua/5.2/cudnn.lua'
no file '/home/parth/miniconda3/envs/fastai-tf/share/lua/5.2/cudnn/init.lua'
no file '/home/parth/miniconda3/envs/fastai-tf/lib/lua/5.2/cudnn.lua'
no file '/home/parth/miniconda3/envs/fastai-tf/lib/lua/5.2/cudnn/init.lua'
no file './cudnn.lua'
no file '/home/parth/.luarocks/share/lua/5.2/cudnn.lua'
no file '/home/parth/.luarocks/share/lua/5.2/cudnn/init.lua'
no file '/home/ubuntu/.luarocks/lib/lua/5.2/cudnn.so'
no file '/home/parth/miniconda3/envs/fastai-tf/lib/lua/5.2/cudnn.so'
no file '/home/parth/miniconda3/envs/fastai-tf/lib/lua/5.2/loadall.so'
no file './cudnn.so'
no file '/home/parth/.luarocks/lib/lua/5.2/cudnn.so'
stack traceback:
[C]: in function 'error'
...h/miniconda3/envs/fastai-tf/share/lua/5.2/trepl/init.lua:384: in function 'require'
src/train.lua:6: in main chunk
[C]: in function 'dofile'
...da3/envs/fastai-tf/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: in ?
`
尝试使用命令cudnn
安装luarocks install cudnn
,该命令提供了输出:
Error: No results matching query were found.
如何解决此依赖性问题。
答案 0 :(得分:0)
the alexbw channel也提供该功能,因此,如果您已经安装了lua-science
,只需
conda install -c alexbw lua-cudnn
如果您是从头开始安装,这似乎是一个非常专业的安装,所以我的建议是
conda create -n lua-sci -c alexbw lua=5.2 lua-science lua-cudnn
即为其创建一个新环境。