Centos7安装torch过程

torch安装官网:http://torch.ch/docs/getting-started.html#_

打开终端输入:

git clone https://github.com/torch/distro.git ~/torch --recursive

Centos7安装torch过程_第1张图片

然后等待,该步是将依赖包放在主文件的torch文件中

 Centos7安装torch过程_第2张图片

 然后在终端输入:

cd torch

 该步是进到我们的torch文件夹,找到安装文件

Centos7安装torch过程_第3张图片

 

然后在终端输入:

bash install-deps

 首先需要输入密码,获取sudo权限,开始下载一些东西

Centos7安装torch过程_第4张图片

 现在变成上图这样

继续在终端输入:

./install.sh

该步安装lua的一些东西

Centos7安装torch过程_第5张图片

安装完后会有一个提醒,输入 yes,如图所示

 接着更新一下环境变量,输入:

source ~/.bashrc

官网给出三种情况,我是用bath,根据自身情况输入

Centos7安装torch过程_第6张图片

 然后输入 th出现下图所示,表明已经安装完毕

Centos7安装torch过程_第7张图片

你可能感兴趣的:(Centos7安装torch过程)