升级我的火炬包之后,一切都在提示符上运行良好,但是,当我尝试编写脚本并通过命令行运行时,每个需求包都无法正常工作。并且我对所有包都有相同的消息,例如require 'torch'
module 'torch' not found:
no field package.preload['torch']
no file '/usr/local/share/lua/5.2/torch.lua'
no file '/usr/local/share/lua/5.2/torch/init.lua'
no file '/usr/local/lib/lua/5.2/torch.lua'
no file '/usr/local/lib/lua/5.2/torch/init.lua'
no file '/usr/share/lua/5.2/torch.lua'
no file '/usr/share/lua/5.2/torch/init.lua'
no file './torch.lua'
no file '/usr/local/lib/lua/5.2/torch.so'
no file '/usr/lib/x86_64-linux-gnu/lua/5.2/torch.so'
no file '/usr/lib/lua/5.2/torch.so'
no file '/usr/local/lib/lua/5.2/loadall.so'
no file './torch.so'