MAC install torch

MAC install torch

参考:
官网:http://torch.ch/docs/getting-started.html
Debug:http://stackoverflow.com/questions/29584422/installing-torch7-ipython-installation-error-mac

过程:

# in a terminal, run the commands WITHOUT sudo
git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch; bash install-deps;
./install.sh

报错:

Not updating your shell profile.
You might want to
add the following lines to your shell profile:

. /Users/***/torch/install/bin/torch-activate

解决(其中*** 表示你的用户名):

cd /Users/***
vim .profile
insert . /Users/***/torch/install/bin/torch-activate
:wq
source .profile

运行:

$ th

  ______             __   |  Torch7
 /_  __/__  ________/ /   |  Scientific computing for Lua.
  / / / _ \/ __/ __/ _ \  |  Type ? for help
 /_/  \___/_/  \__/_//_/  |  https://github.com/torch
                          |  http://torch.ch

th>

work!!!

发布了35 篇原创文章 · 获赞 32 · 访问量 13万+
展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 编程工作室 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览