Simple configuration under Windows TensorFlow

Source: Internet
Author: User
Tags virtual environment

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

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.