Install the anaconda before configuring TensorFlow.
anaconda:https://www.anaconda.com/download/
Loading TensorFlow on Windows only supports versions above Python3.5
Configuration steps:
1, after the installation of Conda, if it is installed online, because the official image is outside the country, in order to speed up the download speed can be converted to a domestic image, the use of Tsinghua Mirror, run in the command
Conda config--add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/Conda config- -Set show_channel_urls Yes
2. Create a virtual environment to run in commands
Conda create-n tensorflow python=3.6
Here TensorFlow is the filename, the file is created in the Envs under Anaconda, only the Python version number is specified later
3. Activating TensorFlow Environment
Activate TensorFlow
The tensorflow here is the file name
4, online installation TensorFlow
Conda Install TensorFlow
The tensorflow here are not file names.
After the installation is done online, you can use the following statement to test, the command line input
python as TF >>hello = tf.constant ('Hello, tensorflow! ' ) >>sess = TF. Session () >>print (Sess.run (hello)) >>a = tf.constant (ten) >>b = tf.constant ( >>print) (Sess.run (a+b))
If you use Pycharm, you can change the project interpreter to Envs under Anaconda in File->settings->project interpreter Python.exe
Reference:
http://blog.csdn.net/ztf312/article/details/56018891
http://blog.csdn.net/u010570551/article/details/54291507
This article will continue to update, if you think the solution to your problem, I hope you can click on the lower right corner of the recommendation, thank you!
Simple configuration under Windows TensorFlow