LoginSignup
7
8

More than 5 years have passed since last update.

Windows10でBashを使ってみる2 (TensorFlowインストール)

Last updated at Posted at 2016-08-04

 コマンド プロンプトのコピペを有効にする

コマンドプロンプトのウィンドウのタイトル部分にマウスを合わせ、右クリックから「プロパティ」を選択
「編集オプション」のチェックボックスをすべてチェックする
キャプチャ003.PNG

Pythonのバージョン確認

$ python -V

Python 2.7.6がインストールされている
キャプチャ001.PNG

Pythonの仮想環境(pip)をインストール

$ sudo apt-get install python-pip python-dev

キャプチャ002.PNG

155 MBほど使用
「Y」を入力

TensorFlowインストール

$ sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.7.1-cp27-none-linux_x86_64.whl

TensorFlow動作確認

pythonを起動する

$ python
>>> import tensorflow as tf
>>> sess = tf.Session()
>>> a = tf.constant(2)
>>> b = tf.constant(3)
>>> sess.run(a+b)
5
>>>

Windows10でBashを使ってみる1
(http://qiita.com/rightoffreedom/items/3265eed2a3d2a207f594)

7
8
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
7
8