LoginSignup
4
5

More than 5 years have passed since last update.

UbuntuでTensorFlow

Posted at

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のコードを実行していく

4
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
4
5