[PYTHON] Installed because Tensorflow has native support for Windows

The official website is here (English)

Quoted text

I will quote from the link at the top of the page in this way.

This environment is the latest (Anniversary Updated) Windows 10, 64bit.

Premise

TensorFlow supports only 64-bit Python 3.5 on Windows.

It seems that Tensorflow only supports 64-bit Python 3.5 on windows.

Installation

Pip installation on Windows

pip is like a tool like a Python package manager that comes with Python 3.5 installed. It seems that you can easily install it using it.

Insert Python3.5 (64bit)

Python3.5 can be downloaded from Python 3.5 from python.org. I downloaded and installed ** Windows x86-64 executable installer ** in ** Files **.

Unless otherwise specified during installation

C:\Users\User name\AppData\Local\Programs\Python\Python35\Scripts

I think pip will be installed here. If it is not installed, launch the installer again and install pip.

It will be easier to install Tensorflow if you register the Scripts directory in the environment variable Path.

Put Tensorflow

To install the CPU-only version of TensorFlow, enter the following command at a command prompt:

Command omitted, please see the official page

To install the GPU version of TensorFlow, enter the following command at a command prompt:

Command omitted, please see the official page

Here, two types of commands are prepared depending on whether you use only the CPU or the GPU. The top is for CPU only and the bottom is for GPU.

Immediately execute the command for the CPU.

C:\>pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl
Collecting tensorflow==0.12.0rc0 from https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl
  Downloading https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl (12.2MB)
    100% |################################| 12.2MB 70kB/s
Collecting numpy>=1.11.0 (from tensorflow==0.12.0rc0)
  Downloading numpy-1.11.2-cp35-none-win_amd64.whl (7.6MB)
    100% |################################| 7.6MB 107kB/s
Collecting wheel>=0.26 (from tensorflow==0.12.0rc0)
  Downloading wheel-0.29.0-py2.py3-none-any.whl (66kB)
    100% |################################| 71kB 1.7MB/s
Collecting protobuf==3.1.0 (from tensorflow==0.12.0rc0)
  Downloading protobuf-3.1.0-py2.py3-none-any.whl (339kB)
    100% |################################| 348kB 2.2MB/s
Collecting six>=1.10.0 (from tensorflow==0.12.0rc0)
  Downloading six-1.10.0-py2.py3-none-any.whl
Collecting setuptools (from protobuf==3.1.0->tensorflow==0.12.0rc0)
  Downloading setuptools-30.0.0-py2.py3-none-any.whl (472kB)
    100% |################################| 481kB 589kB/s
Installing collected packages: numpy, wheel, six, setuptools, protobuf, tensorflow
  Found existing installation: setuptools 20.10.1
    Uninstalling setuptools-20.10.1:
      Successfully uninstalled setuptools-20.10.1
Successfully installed numpy-1.11.2 protobuf-3.1.0 setuptools-30.0.0 six-1.10.0 tensorflow-0.12.0rc0 wheel-0.29.0
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

In the bottom two lines, it seems that you are angry that the version of pip is old.

Update pip using the indicated command.

C:\>python -m pip install --upgrade pip
Collecting pip
  Using cached pip-9.0.1-py2.py3-none-any.whl
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

It says Successfully installed, so maybe it's done.

Let's add Tensorflow again.

C:\>pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl
Collecting tensorflow==0.12.0rc0 from https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl
  Using cached https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl
Requirement already up-to-date: numpy>=1.11.0 in c:\users\a1503\appdata\local\programs\python\python35\lib\site-packages (from tensorflow==0.12.0rc0)
Requirement already up-to-date: six>=1.10.0 in c:\users\a1503\appdata\local\programs\python\python35\lib\site-packages (from tensorflow==0.12.0rc0)
Requirement already up-to-date: wheel>=0.26 in c:\users\a1503\appdata\local\programs\python\python35\lib\site-packages (from tensorflow==0.12.0rc0)
Requirement already up-to-date: protobuf==3.1.0 in c:\users\a1503\appdata\local\programs\python\python35\lib\site-packages (from tensorflow==0.12.0rc0)
Requirement already up-to-date: setuptools in c:\users\a1503\appdata\local\programs\python\python35\lib\site-packages (from protobuf==3.1.0->tensorflow==0.12.0rc0)
Installing collected packages: tensorflow
  Found existing installation: tensorflow 0.12.0rc0
    Uninstalling tensorflow-0.12.0rc0:
      Successfully uninstalled tensorflow-0.12.0rc0
Successfully installed tensorflow-0.12.0rc0

It says Successfully installed, so I'm sure it's a success. It was pretty easy.

Try using it → Run Tensorflow natively supported on windows

Recommended Posts

Installed because Tensorflow has native support for Windows
Installation notes for TensorFlow for Windows
Current status of Theano's support for Windows, etc.
Build procedure for TensorFlow 2.4.0 (Windows10, CUDA11.1.1, cuDNN 8.0.5, Python 3.8.6)
Notes for using TensorFlow on Bash on Ubuntu on Windows
Installing TensorFlow on Windows Easy for Python beginners