按照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.
如何解决此依赖性问题。
它也可以从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
也就是说,为它创造一个新的环境。