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