美文网首页
.lua文件not found,那你需要一个成功安装torch教

.lua文件not found,那你需要一个成功安装torch教

作者: 水球喵 | 来源:发表于2018-04-11 15:39 被阅读0次

由于stackgan项目需要,来安装个torch

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   #刷新环境变量配置,得输入yes

vi /etc/profile  #添加环境变量

PATH=~/torch/install/bin:$PATH    #在profile文件的加Path区域写上这句话

验证是否安装成功

th #直接输入
出现

成功标志

相关文章

网友评论

      本文标题:.lua文件not found,那你需要一个成功安装torch教

      本文链接:https://www.haomeiwen.com/subject/ycqzhftx.html