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