TensorFlow installation in the Windows environment

Source: Internet
Author: User

Always keep abreast of the times and the pace of technology-machine learning will eventually change our lives, study and work, perhaps in the near future.

Today, I am ready to try to build a learning environment based on my big Google TensorFlow, which day may be able to teach it to play games, or can assist in the game development to build some interesting levels, first do accumulate and cultivate interest it. Well, the nonsense is not much to say, get into the chase.

See a lot of environmental building methods, feeling are more complex, according to understanding, first of all to have a Python environment (because in the Windows environment seems to support only 64-bit, Minimum 3.5 version), select the python3.5.2 64-bit version, can be installed directly (for the convenience of later debugging development, reduce errors, recommend a complete installation), and check the configuration to the environment variables, you can also manually decorate the environment later. Once you have installed Python, you can use the cmd command line to lay out your test environment directly.

In order to facilitate the installation and reduce the network failure (various needs FQ, etc.) caused by the wrong installation process, you can download the necessary WHL dependent package manual installation (mainly involved in the numpy), so directly through the PIP install Wheel First install WHL environment can be And then install the downloaded numpy (http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy).

Then we can go to TensorFlow's github to download the build TensorFlow version (depending on your environment and version selection download, I am downloading the CPU version under Windows--https://ci.tensorflow.org/ view/nightly/job/nightly-win/m=windows,py=35/), install directly after download.

You can then write the code to test the installation results directly:

    1. >>>import tensorflow as TF
    2. >>>sess = TF. Session ()
    3. >>>test = tf.constant (' Hello tensorflow ')
    4. >>>print (Sess.run (test))

TensorFlow installation in the Windows environment

Related Article

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.