1.安装环境
kylin 操作系统
2.1)installs the basic package dependencies that LuaJIT and Torch require
git clone https://github.com/torch/distro.git ~/torch --recursive 2)installs LuaJIT, LuaRocks,
cd ~/torch; bash install-deps;
问题1:在kylin 操作系统中,修改代码,否则版本检测错误无法执行 134 elif [[ "$DISTRO" = "kylin" ]]; then //修改环境变量DISTRO = kylin 问题2: 必要时修改环境变量$ubuntu_major_version 3)uses LuaRocks (the lua package manager) to install core packages liketorch,