由于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 #直接输入
出现
成功标志