(i) Windows TensorFlow installation Win64+python3.5__python

Source: Internet
Author: User

November 29, 2016, TF officially announced that version 0.12 TensorFlow supports native Windows operating systems and is not installed through Docker.

TF beginners, Windows heavy dependent users, can follow the following feasible installation method.


First, install Python

1. Install Python on Windows via pip

TensorFlow only supports 64-bit Python3.5on Windows, either via Python 3.5 from python.org or Python 3.5 from Anaconda Download and install Python3.5.2 (Note Select the correct operating system).



2. Set environment variable

Note: When you install an EXE, you add it to the path, you don't have to add it manually, the following operation is omitted.

After the installation of the previous step, the PIP was not found in the PowerShell, so the "% install path%\scripts" under the Python installation path was added to the path, and then the PIP in PowerShell saw several command prompts. The Python installation succeeds on behalf of the Python installation package with the PIP. "Start"-> "All Programs", or you can find the Python terminal.



Second, install Cuda and CUDNN (CPU version TensorFlow Please ignore this step)

TensorFlow is divided into CPU version and GPU version, if you intend to install the GPU version, please install the following two drivers:

1, CUDA Installation: Https://developer.nvidia.com/cuda-downloads

2, CUDNN Installation: HTTPS://DEVELOPER.NVIDIA.COM/CUDNN (to register Nvidia users, and join the CUDNN Development Group, fill out a number of questionnaires can be downloaded) to select the download version to be aware of and Cuda version match. After decompression, cover to cuda installation directory

For example: C:\Program files\nvidia GPU Computing toolkit\cuda\v8.0\



Third, install pip9.1 https://pypi.python.org/pypi/pip Download pip-9.0.1.tar.gz

After decompression, install this pip with CMD, first CD to the PIP decompression path and then use the command

Python setup.py Install

After installation, enter the PIP in CMD to see the following:


iv. installation of TensorFlow

Install the CPU version TensorFlow 0.12,power Shell input:

Pip Install--upgrade HTTPS://STORAGE.GOOGLEAPIS.COM/TENSORFLOW/WINDOWS/CPU/TENSORFLOW-0.12.0-CP35-CP35M-WIN_AMD64.WHL
Very smooth, no problems encountered.


v. Test TensorFlow

Under "All Programs" find "Python 3.5 64bit", a command window appears, enter the test code: [HTML] View plain copy >>>Import TensorFlow as TF >>>sess = tf. Session () >>>a = tf.constant (a) >>> b = Tf.constant >>>print (Sess.run (A + b)) 32






Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.