Tensorflowのインストール
- Tensorとは
- TENSOR FLOW overview
Reference:https://space-ichikawa.com/soralab/2016/02/tensorflow-typeerror/
TensorFlowのインストール方法には、①Pip install、②Virtualenv install、③Docker installがありますが、今回は、Virtualenv installを選択しました(インストール時点のバージョンは、0.6.0)。
PIP install :
Install TensorFlow on your machine, possibly upgrading previously installed Python packages. May impact existing Python programs on your machine.
Virtualenv install:
Install TensorFlow in its own directory, not impacting any existing Python programs on your machine.
Docker install:
Run TensorFlow in a Docker container isolated from all other programs on your machine.
インストール
1.PythonのPIPと開発系と、仮想環境をインストールする。
$sudo apt-get install python-pip python-dev python-virtualenv
2.仮想環境からTensorflowをインストール
$ virtualenv --system-site-packages ~/tensorflow
3.TensorflowをActive
$ source ~/tensorflow/bin/activate
4.Install
(tensorflow)$ pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.6.0-cp27-none-linux_x86_64.whl
----------------------------------------------------------------------------------------------------------
Tensorflowを利用するとき
$ source ~/tensorflow/bin/activate
で、仮想環境を有効にする。
参考文献:
インストール関係