First, create a CentOS7
environment on your Mac with vagrant.
vagrant box add centos_7_x64 https://github.com/holms/vagrant-centos7-box/releases/download/7.1.1503.001/CentOS-7.1.1503-x86_64-netboot.box
mkdir vagrant_centos7
cd vagrant_centos7
vagrant init centos_7_x64
Run after logging in with vagrant ssh
.
su
yum -y install python-devel
pip install setuptools --upgrade
pip install numpy --upgrade
pip install chainer
yum -y install git
Log in to CentOS7
and work.
mkdir sample
cd sample
git clone https://github.com/pfnet/chainer
cd chainer/examples/mnist/
python train_mnist.py
Recommended Posts