Coder Social home page Coder Social logo

Windows support about tensorflow HOT 144 CLOSED

aebk2015 avatar aebk2015 commented on April 20, 2024
Windows support

from tensorflow.

Comments (144)

arose13 avatar arose13 commented on April 20, 2024 94

TensorFlow needs a windows compatible version please!

from tensorflow.

filR avatar filR commented on April 20, 2024 81

Did you see the Download and Setup section on the TensorFlow website?

It should be a normal pip setup for Windows. Though of course there is always Docker for a super fast setup.

from tensorflow.

urish avatar urish commented on April 20, 2024 45

You can run it inside docker (that is what worked for me). Here are the steps:

  1. Download and install docker toolbox for windows
  2. Run the folowing command to create a docker virtual machine:
    • docker-machine create vdocker -d virtualbox
  3. In a cmd window type the following:
    • FOR /f "tokens=*" %i IN ('docker-machine env --shell cmd vdocker') DO %i
    • docker run -it b.gcr.io/tensorflow/tensorflow

After a short while, you will get a linux shell. Type python and have fun :)

from tensorflow.

HWiese1980 avatar HWiese1980 commented on April 20, 2024 8

You need to punch a tunnel through the docker VM network for the port Notebook runs on. IIRC this is done by adding -p 8888:8888 to the docker run command.

from tensorflow.

David-OConnor avatar David-OConnor commented on April 20, 2024 6

Looking forward to a Win version or Conda package; getting Docker working's turning out to be a PIA; errors about bios settings, hosts already existing, vdocker not being running, Missing opening '(' after keyword 'for' etc.

from tensorflow.

sarahharun avatar sarahharun commented on April 20, 2024 6

@luling2010, sure.

  1. Run the folowing command to create a docker virtual machine:
    docker-machine create vdocker -d virtualbox
  2. Check your Oracle VM, whether vdocker is running or not (in my case it was shut down). Start it, if its stopped.
    capture1
  3. In a cmd window type the following:
    FOR /f "tokens=*" %i IN ('docker-machine env --shell cmd vdocker') DO %i
    docker run -it -p 8888:8888 b.gcr.io/tensorflow/tensorflow
  4. Run this url (http://192.168.99.101:8888/) to your browser

from tensorflow.

aebk2015 avatar aebk2015 commented on April 20, 2024 5

I rather use PIP but when I try :

pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl

it gives me an error:

tensorflow-0.5.0-cp27-none-linux_x86_64.whl is not a supported wheel on this pla
tform.

On Mon, Nov 9, 2015 at 2:24 PM, Phil Reither [email protected]
wrote:

Did you see the Download and Setup
http://www.tensorflow.org/get_started/os_setup.md section on the
TensorFlow website?

It should be a normal pip setup for Windows
https://stackoverflow.com/questions/4750806/how-to-install-pip-on-windows.
Though of course there is always Docker for a super fast setup
http://www.tensorflow.org/get_started/os_setup.md#docker-based_installation
.


Reply to this email directly or view it on GitHub
#42 (comment)
.

from tensorflow.

netinstructions avatar netinstructions commented on April 20, 2024 5

I put up some instructions / screenshots of running TensorFlow in a Docker Machine using the commands above if it's helpful for anyone. I was able to get it running on my Windows machine.

from tensorflow.

sarahharun avatar sarahharun commented on April 20, 2024 5

The Linux shell to write python code or jupyter notebook in browser, nothing pops out. I tried to run the the jupyter manually on browser, didn't work. After the commands I'm attaching below, it doesn't do anything. I am using Windows 10.
capture

from tensorflow.

rajmiglani avatar rajmiglani commented on April 20, 2024 4

I installed and everything is running successfully but my Jupyter notebook has just one kernel i.e. Python 2 by default.
I want to run a code on Python 3.
How to proceed?

from tensorflow.

HWiese1980 avatar HWiese1980 commented on April 20, 2024 3

As long as you run it on the CPU that's correct. They should be pretty much equally fast. However, the major intention to get Tensorflow natively running on Windows is to be able to use the GPU. That's not possible from within a virtual machine. At least not when using Windows as the host.

from tensorflow.

anj1 avatar anj1 commented on April 20, 2024 3

To add further clarification, the jupyter notebook will be at the DOCKER_HOST address. For me this is 192.168.99.101. Opening a browser on the host and loading http://192.168.99.101:8888 gives a jupyter session.

from tensorflow.

iaroslav-ai avatar iaroslav-ai commented on April 20, 2024 2

For prototyping I would suggest stick to vritualbox solution.
I installed tensorflow and theano in virtualbox ubuntu with windows host, and made some comparison with purely windows intallation of theano. I found little to no difference in speed between virtual box and pure winodws theano versions; Furthermore, I found that tensorflow in virtualbox is even slightly better (~25% faster) for cnns compared to windows theano in single threaded mode. Furthermore, both windows and vm theano has some threading problems (runs in 1 thread) which I did not figure out yet, but which makes tensorflow 2.5 times faster with cnns overall on my system compared to theano for cpu computations.

from tensorflow.

den-run-ai avatar den-run-ai commented on April 20, 2024 1

conda binary package would be nice (in addition to wheels) on windows, and build instructions with msvc or mingw compilers

from tensorflow.

vrv avatar vrv commented on April 20, 2024 1

Merging this discussion with #17 to keep all the good info in one place.

from tensorflow.

jgharris7 avatar jgharris7 commented on April 20, 2024 1

I installed docker and it fails with an error message when I try a quick start

from tensorflow.

lrn2fly avatar lrn2fly commented on April 20, 2024 1

I followed all official docs on my win machine and managed to painfully install docker and then to download docker... uhm container(?) inside oracle VM VirtualBox

from tensorflow.

IAMJackal avatar IAMJackal commented on April 20, 2024 1

@urish Thanks for your docker install! Total newb here :(

Ran the following command to create a docker virtual machine:
docker-machine create vdocker -d virtualbox

In a cmd window typed the following:

FOR /f "tokens=*" %i IN ('docker-machine env --shell cmd vdocker') DO %i
docker run -it b.gcr.io/tensorflow/tensorflow

The "vdocker" VM loaded and started, but never got the linux shell. Maybe didn't wait long enough or can it be launched from VM?

Also, any tips for setting up the files from https://github.com/anishathalye/neural-style Tensorflow/Python implementation so as to run on vdocker via Python commands or better yet ipython notebook commands? Thanks again for the docker install!

from tensorflow.

nogi-ogi avatar nogi-ogi commented on April 20, 2024 1

I got far as getting to the python in cmd but for some weird reason if I try to do the same thing in powershell, I get a TLS connection error saying host is not running or the connection times out.

Is this due to error in my powershell configuration? I'm not too familiar with powershell but I prefer to work from there as opposed to the default cmd. Any ideas on how to circumvent this issue?

from tensorflow.

HWiese1980 avatar HWiese1980 commented on April 20, 2024 1

@sarahharun You're welcome!

Anyway, it's still running without GPU support only. I feel like I have to mention this again. That's the major purpose of getting it running natively on Windows.

from tensorflow.

e3024650 avatar e3024650 commented on April 20, 2024 1

Hi All, Now i am able to run python commands in docker terminal by following these instruction given in this url (https://bishnusarker.wordpress.com/2015/11/11/how-to-install-google-tensorflow-in-your-windows-machine-using-docker-image/) in windows mcahine, earlier we had some issues were we are not able to run the python commads in docker terminal and istead we are notebook app. with this you guys can run tesorflow commads in docker terminal itself.

from tensorflow.

e3024650 avatar e3024650 commented on April 20, 2024 1

image

from tensorflow.

helenahan2015 avatar helenahan2015 commented on April 20, 2024 1

@iamdrink2009 Sorry for this very late reply. Here is your VM ip. But I'm not very familiar with docker so I don't know how to set either. I suggested you to use Chrome and I failed with IE or Edge to open tensorboard before.
capture

from tensorflow.

Saleem44 avatar Saleem44 commented on April 20, 2024 1

@HWiese1980 hii. plz help me

from tensorflow.

ShunyuanZ avatar ShunyuanZ commented on April 20, 2024 1

@sarahharun I had the same issue (I installed tensorflow on windows via docker), the following was what I tried, and it solved the problem:

  1. in docker terminal run:
    $ docker run -it -p 8888:8888 -p 6006:6006 b.gcr.io/tensorflow/tensorflow
    ( make sure port 8888 is not allocated, otherwise stop container that uses 8888 or give another port)
  2. check your VM's address, this can be done by:
    $ docker-machine ls
  3. say your VM's address is 192.168.99.101, then on your home machine, open a web browser, type in the following link:
    192.168.99.101:8888

NOTE: I just ignored the warnings (something like "WARNING: The notebook server is listening on all IP addresses and not using authentication. This is highly insecure and not recommended.").

*** Above steps also work on windows cmd.

from tensorflow.

aebk2015 avatar aebk2015 commented on April 20, 2024

It gives me an error:

An error occurred trying to connect: Post
http://localhost:2375/v1.21/containers
/create: dial tcp 127.0.0.1:2375: ConnectEx tcp: No connection could be
made bec
ause the target machine actively refused it.

On Mon, Nov 9, 2015 at 2:24 PM, Uri Shaked [email protected] wrote:

You can run it inside docker (that is what worked for me). Here are the
steps:

  1. Download and install docker toolbox for windows
    https://www.docker.com/docker-toolbox
  2. Open a cmd window, and type: docker run -it
    b.gcr.io/tensorflow/tensorflow
  3. After a short while, you will get a linux shell. Type python and
    have fun :)


Reply to this email directly or view it on GitHub
#42 (comment)
.

from tensorflow.

urish avatar urish commented on April 20, 2024

@aebk2015 is that with the docker? I forgot another step, you also need to create a docker vm after installing the docker toolbox, the commands are:

  • docker-machine create vdocker -d virtualbox
  • FOR /f "tokens=*" %i IN ('docker-machine env --shell cmd vdocker') DO %i

from tensorflow.

aebk2015 avatar aebk2015 commented on April 20, 2024

Uri, I tried installing docker toolbox following your previous commands
but still it gives me the same error:

'docker-machine' is not recognized as an internal or external command,
operable program or batch file.

On Mon, Nov 9, 2015 at 2:48 PM, Uri Shaked [email protected] wrote:

@aebk2015 https://github.com/aebk2015 is that with the docker? I forgot
another step, you also need to create a docker vm after installing the
docker toolbox, the commands are:

  • docker-machine create vdocker -d virtualbox
  • FOR /f "tokens=*" %i IN ('docker-machine env --shell cmd vdocker')
    DO %i


Reply to this email directly or view it on GitHub
#42 (comment)
.

from tensorflow.

Wizardofoddz avatar Wizardofoddz commented on April 20, 2024

@jgharris7 run as admin

from tensorflow.

Robot-HaoL avatar Robot-HaoL commented on April 20, 2024

where is the version tensorflow that supporting windows ? thank you

from tensorflow.

IAMJackal avatar IAMJackal commented on April 20, 2024

Got TF to work in an elementary OS (ubuntu) virtual machine in Windows 10, gave up on running TF in docker.

from tensorflow.

altaetran avatar altaetran commented on April 20, 2024

Does anyone know if it is possible to use Conda installations simultaneously with tensorflow running through Docker? I have packages I need to use that can only be installed through Conda. Thanks!

from tensorflow.

IAMJackal avatar IAMJackal commented on April 20, 2024

@iaroslav-ai , thanks for the update!

from tensorflow.

iaroslav-ai avatar iaroslav-ai commented on April 20, 2024

@SeveQ, yes, you are correct. For the case of host other than Windows, do you mean PCI paththrough? Would be really cool to have it on Windows. For those who would like to dig further into virtualbox direction, there is rCUDA, which does virtualization of GPUs, and is available for Windows. But then it might be easier as of now if GPU usage is absolutely necessary e.g. use ubuntu on usb drive.

from tensorflow.

HWiese1980 avatar HWiese1980 commented on April 20, 2024

@iaroslav-ai Yepp, exactly. More precisely PCI-E passthrough which afaik isn't possible in Windows. And I agree, best way to go for the time being is to use Ubuntu. Be it on a USB stick or a second partition... However, as I mentioned in another issue here, dual booting is a pita. Especially if you're a hobbyist and want to do hobby-hopping between gaming and Tensowflowing every now and then. For this case - and I want to believe for others too - it'd be really awesome to have Tensorflow working natively and with GPU support on Windows.

from tensorflow.

zkailinzhang avatar zkailinzhang commented on April 20, 2024

C:\Users\Desktop>docker run -it b.gcr.io/tensorflow/tensorflow

Unable to find image 'b.gcr.io/tensorflow/tensorflow:latest' locally

docker: Error response from daemon: unable to ping registry endpoint https://b.g
cr.io/v0/
v2 ping attempt failed with error: Get https://b.gcr.io/v2/: dial tcp 64.233.188
.82:443: i/o timeout

from tensorflow.

luling2010 avatar luling2010 commented on April 20, 2024

I have the same problem as above, how to fix it?

from tensorflow.

HWiese1980 avatar HWiese1980 commented on April 20, 2024

@anj1 Exactly. Thanks. You still need the tunnel, though. Since Docker usually needs to have the same operating system on the Docker host system as it's in the Docker container (well, parts that is) you need a Linux VM to run a Docker container that is based on Linux under Windows. Docker itself opens port 8888 between the VM and the container. You have to explicitly tell it to forward the port from the outside of the VM to the open Docker container port by using said parameter -p 8888:8888.

from tensorflow.

sarahharun avatar sarahharun commented on April 20, 2024

Thanks a lot @SeveQ and @anj1. It worked. Now tensorflow is running on my Windows 10.

from tensorflow.

luling2010 avatar luling2010 commented on April 20, 2024

@sarahharun Hi, would you please share the details about how to make it, I still can not run, ~~~~(>_<)~~~~

from tensorflow.

luling2010 avatar luling2010 commented on April 20, 2024

@sarahharun Thanks a lot, now I can run tensorflow at http://192.168.99.101:8888/notebooks/. But I still can not run at docker terminal or Windows CMD, is that normal?

from tensorflow.

sarahharun avatar sarahharun commented on April 20, 2024

You are most welcome @luling2010. Yes, I also can not run the docker terminal or windows cmd. But as I can run my python code in the notebook, I think it will work for now.

from tensorflow.

nphippen avatar nphippen commented on April 20, 2024

I have the same issue, how do I run the terminal to execute... Mine is hung on the server, I can reach jupyter but would like to execute.

from tensorflow.

e3024650 avatar e3024650 commented on April 20, 2024

@sarahharun Hi i am having problem with running tensor flow in command prompt, i followed all your four point that u said to @luling2010, im still not able to get Linux shell to write python code, and execute tensorflow

from tensorflow.

e3024650 avatar e3024650 commented on April 20, 2024

@sarahharun hi supporse if i want to run following code, how do i do it in jupyter
$ python...

import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print sess.run(hello)
Hello, TensorFlow!
a = tf.constant(10)
b = tf.constant(32)
print sess.run(a + b)
42

from tensorflow.

e3024650 avatar e3024650 commented on April 20, 2024

Hi i am able to open a jupyter notebook and want to execute the above code in it. can somebody tel me how to execute the above code in jupyter notebook

from tensorflow.

HWiese1980 avatar HWiese1980 commented on April 20, 2024

@e3024650 Just paste it into a Notebook cell and execute the cell? We can't tell you anything unless we know what your problem is.

from tensorflow.

e3024650 avatar e3024650 commented on April 20, 2024

@SeveQ Thanks for the reply, wrote above code in notebook cell and clicked on run button, button i am not able to see the output. i want to see the output of the above code.

from tensorflow.

HWiese1980 avatar HWiese1980 commented on April 20, 2024

Do you see any output at all? Is the notebook kernel running and set as a python2 or python3 kernel?

from tensorflow.

e3024650 avatar e3024650 commented on April 20, 2024

No i dont see any output when i click on run button, instead i see one more cell getting created at below,

image

from tensorflow.

HWiese1980 avatar HWiese1980 commented on April 20, 2024

Looks like the cell isn't executed. Select the cell and press CTRL+ENTER or SHIFT+ENTER. That's the shortcut for execute (respectively execute+select next cell)

from tensorflow.

HWiese1980 avatar HWiese1980 commented on April 20, 2024

Oh... I've just realised... it seems your Notebook isn't connected to the kernel (the disconnection symbol in the upper right corner next to "Python 2"). You have to check why your Notebook isn't running properly. Any chance that we get to see the console output of your Jupyter session?

from tensorflow.

HWiese1980 avatar HWiese1980 commented on April 20, 2024

Should look like this:
firefox_2016-03-18_11-29-10

from tensorflow.

e3024650 avatar e3024650 commented on April 20, 2024

I tried with the following options,
image
But Soon its getting disconnected , not able to withstand the connection.

from tensorflow.

HWiese1980 avatar HWiese1980 commented on April 20, 2024

Weird... what does the output of the jupyter notebook command at the command line say?

from tensorflow.

e3024650 avatar e3024650 commented on April 20, 2024

I dont see the output of the jupyter notebook command at the command line, where we get to see the output if everything runs fine ?

from tensorflow.

HWiese1980 avatar HWiese1980 commented on April 20, 2024

I'll have to install Docker and the container on my machine again to check... will take some time. If anyone else could help in the meantime...

from tensorflow.

e3024650 avatar e3024650 commented on April 20, 2024

ok no problem, i will try fixing it. meantime if anybody know the solution for this problem, it would be great !! Thanks you for your time @SeveQ

from tensorflow.

HWiese1980 avatar HWiese1980 commented on April 20, 2024

This is what my docker run command looks like. Seems something has changed since I don't have to run jupyter notebook manually anymore (IIRC there was only a command prompt like root$ or something couple of months ago).

cmd_2016-03-18_11-51-56

What does your output of docker run say? Are there any error messages?

from tensorflow.

e3024650 avatar e3024650 commented on April 20, 2024

This is how my windows command prompt looks like,
image

i dont think their is any error in the cmd promt

from tensorflow.

HWiese1980 avatar HWiese1980 commented on April 20, 2024

Hmm... the restarts and interrupts and closes have all been executed manually by yourself?

from tensorflow.

e3024650 avatar e3024650 commented on April 20, 2024

Yes
Manually i have executed from the notebook interface, but still i am not able to get my kernel up!!
Due to which i am not able to run any code.

from tensorflow.

HWiese1980 avatar HWiese1980 commented on April 20, 2024

That's really weird... I'm sorry, I can't help you much more with this as I can't tell why your kernel isn't coming up... I don't see anything in the message log that might point towards where the problem is...

Someone else maybe?

from tensorflow.

helenahan2015 avatar helenahan2015 commented on April 20, 2024

@SeveQ, Thanks for this discussion and I finally launched tensorflow on Jupyter. But I failed to launch TensorBoard on Jupyter. I got the message: "You can navigate to http://0.0.0.0:6006", But I cannot open the url. Which IP address should I use?
image

from tensorflow.

HWiese1980 avatar HWiese1980 commented on April 20, 2024

@helenahan2015 The IP is the one of your Docker VM which should be shown during the FOR... command which should be something like 192.168.99.xxx. The port is important too. You'll also have to forward the Tensorflow Board port through the VM. It should be possible to use multiple -p xxxx:yyyy parameters for docker run. In this case try adding -p 6006:6006 and -p 8888:8888 to the docker run command to forward both ports. Hope that helps.

from tensorflow.

helenahan2015 avatar helenahan2015 commented on April 20, 2024

@SeveQ Thank you very much! As you said, use cmd docker run -it -p 8888:8888 -p 6006:6006 b.gcr.io/tensorflow/tensorflow and it works now.

from tensorflow.

e3024650 avatar e3024650 commented on April 20, 2024

@helenahan2015 Hi Let me know how u r executing tensorflow i,e R u executing tensorflow through windows cmd prompt or Jupyter Notebook which gets hosted at docker host address.

from tensorflow.

e3024650 avatar e3024650 commented on April 20, 2024

Hi I have a question : I downloaded tensorflow image from (docker pull b.gcr.io/tensorflow/tensorflow)
docker hub, i was able to see the list of docker images by (docker images) commad. But next time when i issued docker images command in the terminal i was not able to see the tensorflow images in the list of images locally. Any idea why i am not able to see the downloaded image.

from tensorflow.

helenahan2015 avatar helenahan2015 commented on April 20, 2024

@e3024650 Sorry for my late reply. Yes, I execute tensorflow in Jupyter Notebook which gets hosted at docker host address.

from tensorflow.

e3024650 avatar e3024650 commented on April 20, 2024

@helenahan2015 Did u try running tensorflow on your docker terminal ?

from tensorflow.

helenahan2015 avatar helenahan2015 commented on April 20, 2024

@e3024650 Yes. I've tried and it works. Thank you!

from tensorflow.

luling2010 avatar luling2010 commented on April 20, 2024

@sarahharun Hi, I found a problem, when I try to restart my computer, I can not connect to http://192.168.99.101:8888 do you have the same problem and how to fix it.

from tensorflow.

aahoo avatar aahoo commented on April 20, 2024

I got this working using Docker. I restarted my computer and now it doesn't work. Uninstalled Virtual box and Docker toolbox, restarted, installed again, no luck!

I am using docker -p 8888:8888 run -it b.gcr.io/tensorflow/tensorflow to run it.

You can see the screenshot of the terminal window.
image

The error might be related to Virtual Box cause I can't run the default VM; 3 error windows pop up. I couldn't fix the errors related to VM. My device is Surface Pro 3 with Windows 10. Anyone can help?

update:
Now the VM works and it's running. But I can't open Ipython Notebook in the browser.

update
I got mine working finally using the Kitematic tool that comes with Docker Toolbox. It starts in a random port. There is a direct link to launch the Notebook from Kitematic tool.

from tensorflow.

Sandy4321 avatar Sandy4321 commented on April 20, 2024

installation windows fails
tensorflow

Microsoft Windows Version 6.3.9600 2013 Microsoft Corporation. All rights reserved.

C:\Users\Sander>pip install tensorflow
Collecting tensorflow
Could not find a version that satisfies the requirement tensorflow (from versi
ons: )
No matching distribution found for tensorflow
You are using pip version 8.1.0, however version 8.1.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' comm
and.

C:\Users\Sander>

from tensorflow.

iamdrink2009 avatar iamdrink2009 commented on April 20, 2024

@helenahan2015 Hi , I use the command: docker run -it -p 8888:8888 -p 6006:6006 b.gcr.io/tensorflow/tensorflow
but not work, I don't know how to set docker VM ip , FOR... command
Could you tell me about this , thank you very much!
p.s. I want to run tensorboard
But now I only can run tensorflow in jupyter

from tensorflow.

Saleem44 avatar Saleem44 commented on April 20, 2024

@SeveQ Hii . I use the command: docker run -it -p 8888:8888 b.gcr.io/tensorflow/tensorflow but it says that port 0.0.0..0:8888 already allocated. what now should I do.plz help
t1

from tensorflow.

HWiese1980 avatar HWiese1980 commented on April 20, 2024

@Saleem44 Well, then there's something else running on port 8888 on your host system. Maybe a web server... anyway, you can chose whatever port you like (above 1024, rule of thumb) for your external forwarding. Just change the number, I think (someone correct me, please, if I'm wrong, k, thx!), before the colon like docker run -it -p 8080:8888 b.gcr.io... and see if you can find a free port. All you've got to do then is call the notebook via another port on your host. So it's not on localhost:8888 anymore but - as given in the example - on localhost:8080. For instance you could use the pretty arbitrarily chosen port 5776 which should be free on most systems... so your start command for docker should be like docker run -it -p 5776:8888 b.gcr.io/tensorflow/tensorflow.

Hope it's correct and that it helps...

from tensorflow.

Saleem44 avatar Saleem44 commented on April 20, 2024

@HWiese1980 Thanx for quick reply . I choose that port as you said but now that it give me warning again
t2

from tensorflow.

HWiese1980 avatar HWiese1980 commented on April 20, 2024

@Saleem44 you can safely ignore that warning. It just states that the notebook accepts incoming connection on all ports. That could be a security issue in case the host of the notebook session (the docker container in this case) was connected directly to the internet. That shouldn't be the case under normal circumstances.

from tensorflow.

Saleem44 avatar Saleem44 commented on April 20, 2024

@HWiese1980 then how can I use tensorflow because I can't be able to import tensorflow

from tensorflow.

HWiese1980 avatar HWiese1980 commented on April 20, 2024

@Saleem44 Does your notebook show when you open localhost:5776 in your host's browser?

from tensorflow.

Saleem44 avatar Saleem44 commented on April 20, 2024

@HWiese1980 no its not open .Firefox can't establish a connection to the server at localhost:5776
my jupiter notbook run on 8888 as you can see here
screenshot 41

from tensorflow.

iamdrink2009 avatar iamdrink2009 commented on April 20, 2024

@helenahan2015 Thank you for your help,
But I can't start tensorboard. Maybe I will search other way to slove the problem.
Now I can try to start tensorflow on IPython.
thank you

from tensorflow.

HWiese1980 avatar HWiese1980 commented on April 20, 2024

@Saleem44 Huh... this is a tough one... I can't test it myself here because I'm on a metered connection for the time being and don't have the docker container on my PC anymore due to a complete Windows reinstall...

So you have a notebook directly running on your host, right? If you do, it is the reason why port 8888 is already in use on your host. That's that notebook server running outside of the docker container. That notebook cannot import tensorflow because it would require it to be installed directly (!) on your host. For running a tensorflow session you don't need a notebook server running outside of docker! And the tensorflow docker container launches a notebook itself as you can see in your images.

What you could try: stop the notebook server running directly on your host and start docker run... with -p 8888:8888 again. Then access localhost:8888 in your browser and see if it's the notebook server from inside docker that's answering.

from tensorflow.

Saleem44 avatar Saleem44 commented on April 20, 2024

@HWiese1980 I stop notebook and rerun the command ...-p 8888:8888... , now it doesn't say that port is already allocated. But it still not open notebook on http://192.168.99.101:8888 or on localhost:8888
t3

from tensorflow.

Saleem44 avatar Saleem44 commented on April 20, 2024

@HWiese1980 is there any solution

from tensorflow.

HWiese1980 avatar HWiese1980 commented on April 20, 2024

@Saleem44 Can you give the network settings of your local network? The local IP address of your PC, the subnet mask and the default gateway? It may have something to do with why you cannot reach 192.168.99.101. Could you also try pinging it?

If you have a subnet mask of 255.255.0.0 that means that both devices, the one over which you access the internet, and the virtual one of the VM are in the same subnet. Your default route will point to your outgoing connection and thus the packet routing can't reach the VM. This might be the cause...

Another thing I must admit is that I'm not sure localhost:8888 would work at all. I think you have to use the external IP of the VM...

I would really like to help but I can't reconstruct the situation at the moment, like I already mentioned, due to the metered connection I'm on.

from tensorflow.

bidai541 avatar bidai541 commented on April 20, 2024

I got a problem after restart the PC, Yestoday, all the things were right using the command:
docker-machine create vdocker -d virtualbox
In a cmd window type the following:
FOR /f "tokens=" %i IN ('docker-machine env --shell cmd vdocker') DO %i
docker run -it -p 8888:8888 b.gcr.io/tensorflow/tensorflow
But today, when I run the command 'docker run -it -p 8888:8888 b.gcr.io/tensorflow/tensorflow', I got this error: docker: An error occurred trying to connect: Post http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.23/containers/create: open //./pipe/docker_engine: The system cannot find the file specified..
*

In Docker Quickstart Terminal, I input 'docker-machine ls',I got this:
image
Did any one know how to solve this problem ?
thx!

from tensorflow.

bidai541 avatar bidai541 commented on April 20, 2024

I know the problem, the machine ip has changed after restart the PC, so input this command 'docker-machine regenerate-certs [machine name]' before input the command 'docker run'.
Finally remember to change the ip addr in the url.

from tensorflow.

tursunwali avatar tursunwali commented on April 20, 2024

Hi all, (espacially HWiese1980)
nice to see you guys here.
I want to run tensorflow in Kitematic.
I have installed

  1. python 3.5.1
  2. tensorflow : latest
    I run python:
  3. click on DOCKER CLI, powerShell opens
  4. type this command : docker run -it python
  5. result : this sign shown in command line : ">>>" ,that means we are in python

Now, let me ask stupid question: where to type this command :

import tensorflow as tf
matrix1 = tf.constant([[3., 3.]])
matrix2 = tf.constant([[2.],[2.]])

product = tf.matmul(matrix1, matrix2)

when I type "import tensorflow as tf" in python (after >>>)
it ways : there is no such model

Furthermore,

  1. I have installed VIM
  2. Installed Sublime Text
    (I guess that maybe I should type in vim. but do not know how to make it appear....also sublime)
    Please instruct me! I think one problem with images in Kitematic is : THERE ARE NO GUI for them.
    always black screen, always command line .... i think all windows users dislike this.

from tensorflow.

HWiese1980 avatar HWiese1980 commented on April 20, 2024

I'm sorry I can't do that much at the moment. Like mentioned earlier my internet connection is very slow and metered, limited to 2 gigabytes (a sad joke in my book) per day these days. ISP has set the date for switching on my new connection anytime today (Thursday). Until then I cannot download the Docker container nor anything else larger than about 50 megabytes in one go. It's annoying but it's the way it is.

Once I have a good connection again I'll get back to the issues mentioned here, try to reproduce them and see if I can help again. No promises, though! ;-)

from tensorflow.

tursunwali avatar tursunwali commented on April 20, 2024

Hi HWiese1980,
No problem ,I wait.
By then I am struggling by myself.

deep regards
Wali

from tensorflow.

hack-r avatar hack-r commented on April 20, 2024

@filR Don't all of the pip install examples specify Linux or OS X (but never Windows)?

from tensorflow.

manau avatar manau commented on April 20, 2024

Hi guys,

To open linux shell , after docker run -it you can open another command, so execute commands below:

docker ps
-> This command list docker machine in execution , you need 3 first character from conteiner ID
image

So you can execute docker exec and pass initial 3 chars from conteiner id

docker exec -ti 4db bash

image

from tensorflow.

offchan42 avatar offchan42 commented on April 20, 2024

My docker won't start up it said Failed to create VM "MobyLinuxVM: Failed to get the disk in ..."
This message occur on a red whale icon after it installed Hyper-V and reboot the Windows.
So I cannot run this command: docker-machine create vdocker -d virtualbox
Here's the output:

Running pre-create checks...
Error with pre-create check: "This computer is running Hyper-V. VirtualBox won't boot a 64bits VM when Hyper-V is activated. Either use Hyper-V as a driver, or disable the Hyper-V hypervisor. (To skip this check, use --virtualbox-no-vtx-check)"

They said this occur because I already have VirtualBox installed, turning on the flag below would help.
So I try turning on the flag --virtualbox-no-vtx-check and here's the result:

docker-machine create vdocker -d virtualbox --virtualbox-no-vtx-check

Running pre-create checks...
(vdocker) Default Boot2Docker ISO is out-of-date, downloading the latest release...
(vdocker) Latest release for github.com/boot2docker/boot2docker is v1.12.0-rc3
(vdocker) Downloading C:\Users\off99555\.docker\machine\cache\boot2docker.iso from https://github.com/boot2docker/boot2docker/releases/download/v1.12.0-rc3/boot2docker.iso...
(vdocker) 0%....10%....20%....30%....40%....50%....60%....70%....80%....90%....100%
Creating machine...
(vdocker) Copying C:\Users\off99555\.docker\machine\cache\boot2docker.iso to C:\Users\off99555\.docker\machine\machines\vdocker\boot2docker.iso...
(vdocker) Creating VirtualBox VM...
(vdocker) Creating SSH key...
(vdocker) Starting the VM...
(vdocker) Check network to re-create if needed...
Error creating machine: Error in driver during machine creation: Unable to start the VM: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe startvm vdocker --type headless failed:
VBoxManage.exe: error: The virtual machine 'vdocker' has terminated unexpectedly during startup with exit code 1 (0x1).  More details may be available in 'C:\Users\off99555\.docker\machine\machines\vdocker\vdocker\Logs\VBoxHardening.log'
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MachineWrap, interface IMachine

Does anyone here know how to make the docker runs. I've spent a lot of time finding the solution on Google and it's very painful no one have posted the solution.

from tensorflow.

VincentLa avatar VincentLa commented on April 20, 2024

@rajmiglani same issue here. Did you ever figure out a solution? Not sure why it's defaulting to Python 2

from tensorflow.

rajmiglani avatar rajmiglani commented on April 20, 2024

@VincentLa no i rather switched to AWS and built over the cloud.
I try to work out every solution available over the internet but none worked unfortunately.

from tensorflow.

joaanna avatar joaanna commented on April 20, 2024

Hi, I followed the instructions and yesterday I was able to play with tensorflow on jupyter, but today I opened docker and typed docker run -it -p 8888:8888 gcr.io/tensorflow/tensorflow and it downloaded again and in docker machine looks like everything is ok, but when I open the browser it says the server needed too much time to answer and im unable to connect. Could someody please suggest a solution?

from tensorflow.

rajmiglani avatar rajmiglani commented on April 20, 2024

can be a temporary network issue.kindly check the docker machine if its on.

from tensorflow.

joaanna avatar joaanna commented on April 20, 2024

Hey, it works now. I the docker machine was running so it must have been network problem. I have a stupid question, so this time I run vdocker machine and typed docker run -it -p 8888:8888 gcr.io/tensorflow/tensorflow and the files I created the day before were missing. I'm pretty sure thats not the right way to open a new session, cause if it was then I am basically downloading it every time I start a session. Whats the right way to do it?

from tensorflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.