Win10 on the TensorFlow installation tutorial

Source: Internet
Author: User
Tags windows x86

These days to get started learning machine learning content, the first to install TensorFlow.

I've been tinkering with it for a few days. Maybe it's a stupid orz.

Now try to write a tutorial, hoping to help the lost children!

Roughly speaking, four steps:

Install Python environment, configuration python path-> installation numpy-> installation TensorFlow

Step1 Installing the Python environment

When you install Python,

Enter this place: https://www.python.org/downloads/windows/

Click Windows x86-64 executable installer Download python3.6

(If you're a 32-bit computer you'll point to Windows x86 executable installer)

Click Install when you're done downloading. (I can't do it because I've already finished it.)

1. Select Add Python 3.6 to PATH
2. Then click Customize installation to install

After the installation is complete

Step2 Configuring the path of Python
In the Windows menu, click the python 3.6-> right-click anywhere in the file--open file
Click this place to get the address of the folder


Mine is: C:\Users\lobsterwww\AppData\Local\Programs\Python\Python36


Right-click on the system variable, environment variable, left advanced system settings, properties---Edit text with path edit
Paste the directory of the Python folder up to the end and add a ";"
That is, paste C:\Users\lobsterwww\AppData\Local\Programs\Python\Python36;
Click the directory again to see the newly pasted directory is added


Exit system settings

step3 Installation NumPy if not installed, you cannot install TensorFlow directly under PIP.

Go to https://pypi.python.org/pypi/numpy download the WHL that corresponds to Python


If your notebook is 64-bit, download the 64-bit file. What I'm downloading is NUMPY-1.14.2-CP36-NONE-WIN_AMD64.WHL.

Drag the downloaded file to any folder after the download is complete

Like I put it under C + +.

Go to cmd
Go to root directory \ c \

Enter pip install NUMPY-1.14.2-CP36-NONE-WIN_AMD64.WHL(see what you're downloading in the following name)
After the installation is successful

Open Python.exe .
Try to enter
>>> from numpy Import *
>>> Random.rand (3,3)

If there is a NumPy installation is successful

STEP4 installation TensorFlow

This is again into CMD
Enter the C:\Users\lobsterwww\AppData\Local\Programs\Python\Python36 directory (that is, the directory where you installed Python)

Enter pip install tensorflow to install TensorFlow

Enter Python.exe after successful installation
Input
Import TensorFlow
Import TensorFlow as TF
tf.__version__

The installation succeeds if the following interface is present.

Hope can help the people!

Win10 on the TensorFlow installation tutorial

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.