Ubuntu安装Torch教程,Ubuntu中如何安装Torch?

Song534 次浏览0个评论2018年07月11日

[b]一. Torch是什么?[/b] [quote] Torch是一个广泛支持[b]机器学习算法[/b]的科学计算框架,由于采用简单而快速的脚本语言LuaJIT和一个底层的C/CUDA实现,Torch易于使用且高效。

[attach]20[/attach]

[/quote] [b]二. Torch的版本支持[/b] 最新版的Torch支持Ubuntu,Fedora20,Fedora22,Centos7。但不支持Fedora21,Centos6。   [b]三. ubuntu安装Torch[/b][code]# in a terminal, run the commands git clone https://github.com/torch/distro.git ~/torch --recursive cd ~/torch; bash install-deps; ./install.sh[/code]有时候在执行[b]bash install-deps[/b]安装依赖时并未出错,但执行[b]./install.sh[/b]时会出一些错误,解决办法我。 T做了一个汇总,希望能帮助大家:   [b]五. torch安装问题汇总[/b]

  1. 错误类似于:[code]nvcc error : '***' died due to signal[/code]解决方案:[b]sudo ./install.sh[/b]

错误2[code]Error: Build error: Failed building. Updating manifest for /root/torch/install/lib/luarocks/rocks fftw3 scm-1 is now built and installed in /root/torch/install/ (license: BSD)[/code] 错误3[code]Error: Failed installing dependency: https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/luacrypto-0.3.2-1.src.rock - Could not find header file for OPENSSL No file openssl/evp.h in /usr/local/include No file openssl/evp.h in /usr/include You may have to install OPENSSL in your system and/or pass OPENSSL_DIR or OPENSSL_INCDIR to the luarocks command. Example: luarocks install luacrypto OPENSSL_DIR=/usr/local[/code]参照[b]Problem with Torch #86[/b],执行[code]sudo apt-get install -y libssl-dev[/code]安装libssl-dev,之后重新安装Torch即可。

错误4:

提示缺少依赖lbase64 ,luacrypto,uuid 等,可直接执行如下代码[code]luarocks install missed-package[/code]

提交评论

请登录后评论

用户评论

    当前暂无评价,快来发表您的观点吧...

更多相关好文

    当前暂无更多相关好文推荐...

    公告提示

    Pytorch是Facebook的AI研究团队发布了一个Python工具包,是Python优先的深度学习框架。作为numpy的替代品;使用强大的GPU能力,提供最大的灵活性和速度,实现了机器学习框架Torch在Python语言环境的执行,基于python且具备强大GPU加速的张量和动态神经网络。