【Tensorflow】Windows10でTensorflowの環境構築

# 前提条件
・Windows10
・環境関数が何なのか分かっている方

# 目標
・TensorFlow with CPU support only.

# 手順
1. pythonを設置
2. pipをアップデート
3. tensorflowを設置
4. テスト
5. おわりに

> 参考にしたサイト　：　https://www.tensorflow.org/install/install_windows

-----

### 1. pythonを設置
> Python 3.5.x from python.org　：　https://www.python.org/downloads/release/python-352/

![01.PNG](https://qiita-image-store.s3.amazonaws.com/0/161523/10b30248-4daf-8064-958f-14aa97c37a5b.png)

![02.PNG](https://qiita-image-store.s3.amazonaws.com/0/161523/b5a7c0de-5884-1fcf-0331-74bebc024770.png)



##### pythonのバージョンを確認
```vim:cmd
>python --version
Python 3.5.2
```


### 2. pipをアップデート
```vim:cmd
>python -m pip install --upgrade pip
# 以下、コンソールに出力されるログ

Collecting pip
  Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)
    100% |################################| 1.3MB 727kB/s
Installing collected packages: pip
  Found existing installation: pip 8.1.1
    Uninstalling pip-8.1.1:
      Successfully uninstalled pip-8.1.1
Successfully installed pip-9.0.1
```


### 3. tensorflowを設置
```vim:cmd
>pip3 install --upgrade tensorflow
# 以下、コンソールに出力されるログ

Collecting tensorflow
  Downloading tensorflow-1.1.0-cp35-cp35m-win_amd64.whl (19.4MB)
    100% |################################| 19.4MB 52kB/s
Collecting six>=1.10.0 (from tensorflow)
  Using cached six-1.10.0-py2.py3-none-any.whl
Collecting werkzeug>=0.11.10 (from tensorflow)
  Downloading Werkzeug-0.12.1-py2.py3-none-any.whl (312kB)
    100% |################################| 317kB 1.6MB/s
Collecting wheel>=0.26 (from tensorflow)
  Downloading wheel-0.29.0-py2.py3-none-any.whl (66kB)
    100% |################################| 71kB 2.3MB/s
Collecting numpy>=1.11.0 (from tensorflow)
  Downloading numpy-1.12.1-cp35-none-win_amd64.whl (7.7MB)
    100% |################################| 7.7MB 128kB/s
Collecting protobuf>=3.2.0 (from tensorflow)
  Downloading protobuf-3.3.0.tar.gz (271kB)
    100% |################################| 276kB 2.2MB/s
Collecting setuptools (from protobuf>=3.2.0->tensorflow)
  Downloading setuptools-35.0.2-py2.py3-none-any.whl (390kB)
    100% |################################| 399kB 1.6MB/s
Collecting packaging>=16.8 (from setuptools->protobuf>=3.2.0->tensorflow)
  Downloading packaging-16.8-py2.py3-none-any.whl
Collecting appdirs>=1.4.0 (from setuptools->protobuf>=3.2.0->tensorflow)
  Downloading appdirs-1.4.3-py2.py3-none-any.whl
Collecting pyparsing (from packaging>=16.8->setuptools->protobuf>=3.2.0->tensorflow)
  Downloading pyparsing-2.2.0-py2.py3-none-any.whl (56kB)
    100% |################################| 61kB 3.9MB/s
Installing collected packages: six, werkzeug, wheel, numpy, pyparsing, packaging, appdirs, setuptools, protobuf, tensorflow
  Found existing installation: setuptools 20.10.1
    Uninstalling setuptools-20.10.1:
      Successfully uninstalled setuptools-20.10.1
  Running setup.py install for protobuf ... done
Successfully installed appdirs-1.4.3 numpy-1.12.1 packaging-16.8 protobuf-3.3.0 pyparsing-2.2.0 setuptools-35.0.2 six-1.10.0 tensorflow-1.1.0 werkzeug-0.12.1 wheel-0.29.0
```

### 4. テスト
![03.PNG](https://qiita-image-store.s3.amazonaws.com/0/161523/13f59a92-f93c-cb67-40d7-4e68be2e55ba.png)


### 5. おわりに
> チュートリアル　：　https://www.tensorflow.org/get_started/mnist/beginners
> データセット　　：　https://www.kaggle.com/c/digit-recognizer

皆さんもどうぞ
![04.PNG](https://qiita-image-store.s3.amazonaws.com/0/161523/9cfdd19d-33f7-5d60-29be-3bbf189bf7c5.png)