cloud9上の開発環境にてtensorflowをインストールしました。
cloud9環境には予め、minicondaをインストールしてあります。
anaconda(miniconda) python3.5.3,jupyter notebookのインストール方法はこちら
http://qiita.com/KenjiKitagawa/items/e0225d9be10ea3dbdafc
参考にさせてもらったサイト
http://qiita.com/tomochiii/items/fe4c791b313ddcef4cd7
コマンド
cloud9のコマンドプロンプトから実行
conda create -n tensorflow python=3.5 anaconda
pip install --upgrade tensorflow
インストール確認
kitaken:~/workspace $ python
Python 3.5.3 |Continuum Analytics, Inc.| (default, Mar 6 2017, 11:58:13)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
>>> hello = tf.constant('Hello, TensorFlow!')
>>> sess = tf.Session()
2018-02-22 01:31:36.045539: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
2018-02-22 01:31:36.045607: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
2018-02-22 01:31:36.045628: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
>>> print(sess.run(hello))
b'Hello, TensorFlow!'
>>>