Using TensorFlow under Windows

Source: Internet
Author: User
Tags continuum analytics macbook

The previous log (http://www.cnblogs.com/huidong/p/5426556.html) wrote how to install Docker under Windows and install TensorFlow on the VM.

Every time you start a tensorflow under window, you have to be sure to start the VM every time. For example, my VM's name is Vdocker, so start it and the regenerate certificate needs to be used.

$docker-Machinestart Vdocker$docker-machine regenerate-certs vdocker

Check that the VM is working properly can be used

Ls

Note that all of the above are done under Docker terminal.

After the VM starts, it goes into CMD,

" tokens=* " %i in ('docker-machine env--shell cmd vdocker') do%I8888:  8888 B.gcr.io/tensorflow/tensorflow

One can not be less, then run your Python program using Jupyter.

Since TensorFlow has no original support for Windows, using TensorFlow under Windows is not as straightforward as OSX. Fortunately, the landlord has small white and small black (mainly used to do scientific research, run Matlab,comsol and so on), on the MacBook, if installed TensorFlow official website installed after TensorFlow (I chose Anaconda installation), Just type in the terminal:

wireless-Ten-145- --151:~hui$ Source Activate tensorflowdiscarding/users/hui/anaconda/bin from Pathprepending/users/hui/anaconda/envs/tensorflow/bin to PATH (tensorflow) wireless-Ten-145- --151: ~ hui$ python-Vpython2.7. One:: Continuum Analytics, Inc. (tensorflow) wireless-Ten-145- --151:~hui$ Pythonpython2.7. One| Continuum Analytics, inc.| (Default, Dec6  -, -: $: -) [GCC4.2.1(Apple Inc. Build5577)] on Darwintype" Help","Copyright","credits"Or"License"  for  Moreinformation. Anaconda is brought to Continuum analytics.please check out:http://Continuum.io/thanks andhttps://anaconda.org>>>import TensorFlow as TF>>>(tensorflow) wireless-Ten-145- --151:~hui$ Source Deactivatediscarding/users/hui/anaconda/envs/tensorflow/bin from Pathwireless-Ten-145- --151: ~ hui$

You can see that import tensorflow in Python is completely free of problems. Landlord plan in a few days to update MacBook installation TensorFlow method, in fact quite simple, basic is the official website steps.

Using TensorFlow under Windows

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.