Centos7下安裝部署MXNET

來源:互聯網
上載者:User

標籤:bash   參考   his   uid   exp   otl   lease   from   gcc   

Centos下安裝MXNET(類似於Amazon Linux下安裝MXNET),參考官方文檔http://mxnet.io/get_started/setup.html#prerequisites,

安裝步驟如下:

####################################################################### This script installs MXNet for Python along with all required dependencies on a Amazon Linux Machine.######################################################################set -e# CMake is required for installing dependencies.sudo yum install -y cmake# Set appropriate library path env variablesecho ‘export PATH=/usr/local/bin:$PATH‘ >> ~/.profileecho ‘export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH‘ >> ~/.profileecho ‘export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH‘ >> ~/.profileecho ‘. ~/.profile‘ >> ~/.bashrcsource ~/.profile# Install gcc-4.8/make and other development tools on Amazon Linux# Reference: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/compile-software.html# Install Python, Numpy, Scipy and set up tools.sudo yum groupinstall -y "Development Tools"sudo yum install -y python27 python27-setuptools python27-toolssudo yum install -y python27-numpy python27-scipy python27-nose python27-matplotlib# Install OpenBLAS at /usr/local/openblasgit clone https://github.com/xianyi/OpenBLAScd OpenBLASmake FC=gfortran -j $(($(nproc) + 1))sudo make PREFIX=/usr/local installcd ..# Install OpenCV at /usr/local/opencvgit clone https://github.com/opencv/opencvcd opencvmkdir -p buildcd buildcmake -D BUILD_opencv_gpu=OFF -D WITH_EIGEN=ON -D WITH_TBB=ON -D WITH_CUDA=OFF -D WITH_1394=OFF -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..sudo make PREFIX=/usr/local install# Export env variables for pkg configexport PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH

這裡安裝opencv需要注意的地方:

1、如果停在了下載ippicv的地方,可以自行下載ippicv_linux_20151201.tgz(連結:http://www.linuxfromscratch.org/blfs/view/7.9/general/opencv.html),

然後將剛才下載的ippicv檔案直接拷貝進入opencv源碼的下面這個目錄:3rdparty/ippicv/downloads/linux-808b791a6eac9ed78d32a7666804320e

 

Centos7下安裝部署MXNET

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.