AWS上のUbuntuでやる。
- AMI ubuntu/images/hvm-ssd/ubuntu-trusty-14.04-amd64-server-20160114.5 (ami-06116566)
インストール方法はいろいろ書いてあるがAnacondaを使ってみる。
Anacondaインストール。
$ wget http://repo.continuum.io/archive/Anaconda3-4.0.0-Linux-x86_64.sh
$ bash Anaconda3-4.0.0-Linux-x86_64.sh
exec $SHELL
$ conda -V
conda 4.0.5
python2.7環境をつくる。3.5だと何故かエラーが出た。
$ conda create -n tensorflow python=2.7
$ source activate tensorflow
$ python -V
Python 2.7.11 :: Continuum Analytics, Inc.
$ pip -V
pip 8.1.1 from /home/ubuntu/anaconda3/envs/tensorflow/lib/python2.7/site-packages (python 2.7)
このあと何故かlocaleのエラーが出たので潰しておく。
$ locale
$ export LC_ALL=C
いよいよTensorFlowインストール。
$ pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl
$ python
>>> import tensorflow as tf
これでintroductionのコードを実行していく