LoginSignup
1
4

More than 5 years have passed since last update.

【Tensorflow】Windows10でTensorflowの環境構築

Posted at

前提条件

・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

02.PNG

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

2. pipをアップデート

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を設置

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

5. おわりに

チュートリアル : https://www.tensorflow.org/get_started/mnist/beginners
データセット  : https://www.kaggle.com/c/digit-recognizer

皆さんもどうぞ
04.PNG

1
4
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
1
4