Windows Anaconda installation Python + TensorFlow

Source: Internet
Author: User

Download and install Anaconda

Download the anaconda first, which can be downloaded from the image website of Tsinghua University .

Install Anaconda, and be careful not to remove the option to add environment variables during installation.

After the installation is complete, in the installation directory cmd, enter

Conda List

You can see the integration environment that Anaconda provides for us:

Here's just a part:

To view version information:

Conda--version

Anaconda installation was successful.

Next need to set Anaconda warehouse image, because the default connection is the foreign mirror address, download speed is slow, we changed the mirror address to Tsinghua Open source software Mirror station, Anaconda Prompt window input:

Conda config--add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/Conda config- -set Show_channel_urls Yes
Installing TensorFlow

Continue typing in the Anaconda Prompt window:

Conda create-n TensorFlow python=3.5

Represents the creation of a tensorflow dependent environment, TensorFlow currently does not support Python3.6, where we use Python3.5.

Console output:

Fetching package metadata ...... .....  Solving Package Specifications:. Package Plan forInstallationinchEnvironment D:\Program Files\anaconda\envs\tensorflow:the following NEW packages would be INSTALLED:PIP: 9.0.1-py35_1 https://Mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/freePython:3.5.3-0Https//Mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/freeSetuptools:27.2.0-py35_1 https://Mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/freeVs2015_runtime:14.0.25123-0Https//Mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/freeWheel0.29.0-py35_0 https://Mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/freeProceed ([y]/n)? Y

Prompt us to install which dependent software, input ' Y ', enter.

To install the CPU version:

Install -I https:///https://mirrors.tuna.tsinghua.edu.cn/tensorflow/windows/cpu/ TENSORFLOW-1.1.0-CP35-CP35M-WIN_AMD64.WHL

Activating the Environment:

Activate TensorFlow

Exit the Environment:

Test

Enter the/envs/tensorflow folder in the Anaconda installation directory and continue entering the input in the Anaconda Prompt window:

Python.exe

Input:

>>> import TensorFlow as tf>>> hello = tf.constant ('Hello, tensorflow! ' )>>> sess = TF. Session ()>>> sess.run (hello) b'Hello, tensorflow! '

Windows Anaconda installation Python + TensorFlow

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.