9
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[Environment]Virtualboxを使ってWindowsマシンにDeep Learning環境を構築してみた

Posted at

Virtualboxを使ってWindowsマシン上にubuntuの環境を作り、chainertensorflowをインストールする手順をざっくり書いてみました。

virtualbox

https://www.virtualbox.org/wiki/Downloads
WS000000.JPG

ubuntu14.04LTS

ダウンロード

https://www.ubuntulinux.jp/News/ubuntu1404-ja-remix
WS000001.JPG

ubuntu14.04 LTSインストール

  1. virtualbox起動
  2. 新規から仮想マシン作成

WS000002.JPG

  1. ISOをドライブに設定する
    設定、ストレージのCDのマークの空を選択し、右側出てきたCDのマークを押して、ダウンロードしたISOファイルを指定する

指定前
WS000004.JPG
指定後
WS000003.JPG

  1. 起動を押して、仮想マシンを起動する

  2. ubuntuをインストール
    インストール画面になるので、「ubuntuをインストール」を押してインストールする

Anaconda

anacondaを下記からダウンロードしてインストールする

bash
user@mypc:~/work/Environment$ bash Anaconda2-2.5.0-Linux-x86_64.sh 

Welcome to Anaconda2 2.5.0 (by Continuum Analytics, Inc.)

In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>> 
bash
cryptography
A Python library which exposes cryptographic recipes and primitives.

Do you approve the license terms? [yes|no]
>>> yes

bash
  - Press ENTER to confirm the location
  - Press CTRL-C to abort the installation
  - Or specify a different location below

[/home/user/anaconda2] >>> 
bash
installation finished.
Do you wish the installer to prepend the Anaconda2 install location
to PATH in your /home/user/.bashrc ? [yes|no]
[no] >>> yes

condaをアップデートする

bash
conda update conda
conda update anaconda

chainer

chainerをインストールする

'/home/user/anaconda2/bin'にpathが通っていない場合は下記のようにしてあげるといいです。

bash
user@mypc:~/work/Environment$ source ~/.bashrc

あとは仮想環境を作ってinstallするだけです。
詳しくはここを参照してください。

bash
user@mypc:~/work/Environment$ conda create -n chainer python=2.7 anaconda
user@mypc:~/work/Environment$ source activate chainer
(chainer)user@mypc:~/work/Environment$ pip install chainer

tensorflow

仮想環境を作ってinstallするだけです。
詳しくはここを参照してください。

bash
user@mypc:~/work/Environment$ conda create -n tensorflow python=2.7 anaconda
user@mypc:~/work/Environment$ source activate tensorflow
(tensorflow)user@mypc:~$ pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.7.1-cp27-none-linux_x86_64.whl
9
10
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
9
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?