LoginSignup
5
5

More than 5 years have passed since last update.

CentOS7でChainerを使う【環境構築編】

Posted at

環境概略

  • Mac OS X Yosemite 10.10.5
  • Vagrant 1.7.4
  • CentOS 7 x64

CentOSの構築

まずは、vagrantでMacにCentOS7環境を作成します。

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

CeontOS7にインストールするもの

vagrant sshでログインした後に実行します。

su
yum -y install python-devel
pip install setuptools --upgrade
pip install numpy --upgrade
pip install chainer
yum -y install git

サンプルをダウンロードします

CentOS7にログインして作業を行います。

mkdir sample
cd sample
git clone  https://github.com/pfnet/chainer
cd chainer/examples/mnist/
python train_mnist.py
5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5