首页 > 代码库 > Centos7下安装部署MXNET
Centos7下安装部署MXNET
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 variables echo ‘export PATH=/usr/local/bin:$PATH‘ >> ~/.profile echo ‘export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH‘ >> ~/.profile echo ‘export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH‘ >> ~/.profile echo ‘. ~/.profile‘ >> ~/.bashrc source ~/.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-tools sudo yum install -y python27-numpy python27-scipy python27-nose python27-matplotlib # Install OpenBLAS at /usr/local/openblas git clone https://github.com/xianyi/OpenBLAS cd OpenBLAS make FC=gfortran -j $(($(nproc) + 1)) sudo make PREFIX=/usr/local install cd .. # Install OpenCV at /usr/local/opencv git clone https://github.com/opencv/opencv cd opencv mkdir -p build cd build cmake -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 config export 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个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。