版权声明:感谢观看! https://blog.csdn.net/qq153471503/article/details/82848827
MXnet Ununtu安装配置
环境说明
2018/09/26
Ubuntu14.04-32bit
vmware10
win10-1803
mxnet1.3.1
资源下载
git下载mxnet源码很慢, 所以我将下载好的源码已经打包
链接: https://pan.baidu.com/s/1wGMxAlW456P7HMeA7IQsTQ 提取码: nc4b
安装方法
- 安装python以及必备库
sudo apt-get install python python-setuptools python-numpy
- 安装Git
sudo apt-get install git
- 从Github上获取MXNet源码并解压
git clone --recursive https://github.com/dmlc/mxnet tar xvf mxnet.tar.gz
- 配置mxnet
cd mxnet make -j$(nproc) #利用多核特性自动配置
- 安装mxnet
cd python python setup.py install
- 测试(这是一个用于图像的分类器)
cd ../example/image-classification python train_mnist.py
- 测试结果
错误处理
错误1:
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
make: *** [build/src/operator/tensor/elemwise_unary_op_basic.o] Error 4
make: *** Waiting for unfinished jobs…
g++: internal compiler error: Killed (program cc1plus)
此错误是由于虚拟机内存太小导致的,调整内存后重新安装
ends…