「TensorFlow 」インストール

Tensor Flow 

@tensorflow

CentOS7 Anaconda (Python3.5系)でTensorflowをインストール

condaでライブラリアップデート

conda update conda
conda update anaconda
conda update --all 

Tenforflow インストール
pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.10.0rc0-cp35-cp35m-linux_x86_64.whl
Cannot remove entries from nonexistent file /root/anaconda3/lib/python3.5/site-packages/easy-install.pth

CPU
pip install --upgrade --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.10.0rc0-cp35-cp35m-linux_x86_64.whl

Installing collected packages: wheel, six, numpy, setuptools, protobuf, tensorflow
Successfully installed numpy-1.12.0 protobuf-3.0.0b2 setuptools-33.1.1 six-1.10.0 tensorflow-0.10.0rc0 wheel-0.29.0

python -c 'import site; print("\n".join(site.getsitepackages()))'
/root/anaconda3/lib/python3.5/site-packages

ipython

[root@localhost deep-learning-TensorFlow]# ipython
Python 3.5.2 |Anaconda custom (64-bit)| (default, Jul  2 2016, 17:53:06) 
Type "copyright", "credits" or "license" for more information.

In [1]: import tensorflow as tf
In [2]: a = tf.constant(32)
In [3]: b = tf.constant(10)
In [4]: sess = tf.Session()
In [5]: print (sess.run(a+b))
42

pip install --upgrade $TF_BINARY_URL
Successfully installed protobuf-3.1.0 tensorflow-0.12.0
    pip list 
    tensorflow (0.12.0)


        コメント

        このブログの人気の投稿

        「Deep Learning」を理解する

        「PythonとKerasによるDeep Learning」を理解する

        Distributed Deep learning on Apache Spark