Ubuntu安装Torch教程,Ubuntu中如何安装Torch?
[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]
- 错误类似于:[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]
用户评论
更多相关好文
-
微信公众号文章/菜单添加小程序时路径如何获取? 2021-12-22
-
如何轻松获取微信小程序路径path? 2021-12-22
-
cannot import name 'CUDA_HOME' from 'mmcv.utils' 2021-12-05
-
vgg的loss一轮达到ln(1/n)阈值,如何解决 2021-11-21
-
如何下载使用utils库 2021-10-27
热门文章
-
cannot import name 'CUDA_HOME' from 'mmcv.utils' 2021-12-05
-
vgg的loss一轮达到ln(1/n)阈值,如何解决 2021-11-21
-
如何下载使用utils库 2021-10-27
-
pytorch调用geforce rtx 3060 2021-10-24
-
pytorch中如何实现多模型的并联 2021-09-15
栏目最新文章
公告提示
- pytorch中文文档
- pytorch官方文档
提交评论