-
Notifications
You must be signed in to change notification settings - Fork 74.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows support #42
Comments
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. |
You can run it inside docker (that is what worked for me). Here are the steps:
After a short while, you will get a linux shell. Type |
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 On Mon, Nov 9, 2015 at 2:24 PM, Phil Reither [email protected]
|
It gives me an error: An error occurred trying to connect: Post On Mon, Nov 9, 2015 at 2:24 PM, Uri Shaked [email protected] wrote:
|
@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:
|
Uri, I tried installing docker toolbox following your previous commands 'docker-machine' is not recognized as an internal or external command, On Mon, Nov 9, 2015 at 2:48 PM, Uri Shaked [email protected] wrote:
|
conda binary package would be nice (in addition to wheels) on windows, and build instructions with msvc or mingw compilers |
Merging this discussion with #17 to keep all the good info in one place. |
I installed docker and it fails with an error message when I try a quick start |
@jgharris7 run as admin |
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. |
where is the version tensorflow that supporting windows ? thank you |
TensorFlow needs a windows compatible version please! |
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. |
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 |
@urish Thanks for your docker install! Total newb here :( Ran the following command to create a docker virtual machine: In a cmd window typed the following: FOR /f "tokens=*" %i IN ('docker-machine env --shell cmd vdocker') DO %i 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! |
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? |
Got TF to work in an elementary OS (ubuntu) virtual machine in Windows 10, gave up on running TF in docker. |
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! |
For prototyping I would suggest stick to vritualbox solution. |
@iaroslav-ai , thanks for the update! |
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. |
@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. |
@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. |
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 |
…e class which will be called only fit() and use hidden_units at that time
…works correctly with it
Today we announced native Windows support, with packages for Python 3.5. If you have installed the 64-bit version of Python 3.5 (either from Python.org or Anaconda), you can install TensorFlow with a single command:
For GPU support, if you have CUDA 8.0 installed, you can install the following package instead:
Please open a new issue if you have problems with these packages, and thanks for your interest in TensorFlow on Windows! |
Finally! The time has come. So I don't have to use Docker without utilizing GPUs anymore. |
Thank you!!! great news. |
Wooh,Great update.. and Last Saturday lost my windows partition files trying to install Ubuntu on Windows machine to use Tensorflow... Thanks to Testdisk software helped me to retrieve some... Now let us try this Tensorflow on windows......!!!! |
Holy mother of god! I didn't sleep very well last night but this is great news to untimely wake up to. Installing CUDA 8 right now (had to reinstall my Windows a couple of weeks ago and didn't bother yet to also install CUDA)! |
Oh, and just to inform you: with the corresponding wheels Keras now works with Tensorflow backend on Windows as well. I've just tried it: http://i.imgur.com/uO0Z1zz.png You need the wheels of |
@HWiese1980 May I write you privately? Thanks!!! |
@Kamatio Sure! |
I have to mention that some things regarding Keras still don't seem to work. I can run many of the examples shipping with the Keras git repo but some just respond with several different error messages... But this repo here is about Tensorflow, so... just wanted to mention it. |
Can someone advise me how to run these function imports on recent released tensorflow on windows? |
Hi, I am trying to install Tensorflow in windows machine through Docker. I have also installed iPython. (See below image for details). If i am running the command "docker-machine ls", it is giving me below result in docker quick start terminal. I had already created a virtual machine "vdocker". When i am trying to run below code in cmd.exe, i am getting this. Also python window is not opening even if i am trying to open through browser. Could you please tell me what is happening? Thanks in advance ! |
But Tensorflow is now compatible with windows, May be no need to install it via Docker.. Just consult here and install on windows.. |
I am not familiar with docker, but I agree with Kamatio that running natively is the best option, unless you need the Docker environment. I run TensorFlow natively on my Windows 10 system with Juypter (was iPython) and it works great. The only glitch is that installing Tensorflow into a conda environment, instead of system-wide, is not yet supported. |
it seems that this issue also happens with Docker images. For example, if you try to do
it freaks out with the notebook security warnings and doesn't open a bash shell. |
Hello I am running Tensorflow examples on my Win 10 machine with Python 3.5.2 and latest TF 0.12.0 (those out of the box) and seeing errors on several of them. Seeing several errors. For example, the wide-N-deep tutorial is throwing the following (along with lots of deprecation messages) Traceback (most recent call last): Any idea where this could be from? I did a git pull for TF again to ensure I have latest examples. |
Sadly one nasty part is the integration with Google's Cloud Dataflow like in this example. You now have the choice of having TensorFlow (supporting only Python 3.5) or Apache Beam SDK (supporting only Python 2.7), but not both. 🙈 |
This below link explain step by step with screenshot to install tensorflow on windows, docker not required. |
Hello everybody.... I was trying to install tensorflow with pip commands and it was not supported...I am using windows system and python 2.7. The tflearn was possible to install. Do you have any suggestions? |
@raphaccgil Hi. Tensorflow is not yet supported on Python 2.7 on Windows System. Instead you can do the following:
It will install perfectly. |
* OpenCL improvements Added Tile, Transpose and Range Ops double support for SYCL device. Moved gpu_device_name() to test_util.py so now it can be used in force_gpu to pull either GPU or SYCL depending on what is available in the system. * Improvements to the SYCL device support - Registration of Type Traits required for stride slice op - Registration of ConcatOffset, _ListToArray, _ArrayToList Pad, Reverse ( CPU ), ReverseV2 ( CPU ), Size, ExpandDims, Squeeze, StridedSlice, StridedSliceGrad, StridedSliceAssign, TileGrad, InvertPermutation, Transpose - Registration of Sycl kernels only for essential data types - Floor_div_real has been disabled for SYCL device - Device in control_flow_ops_py_test.py needed to be lower cased * SYCL support improvements (#31) * Improvements to the SYCL device support This commit reduces number of failing tests when TensorFlow compiles for OpenCL support. - Registration of Type Traits required for stride slice op - Registration of ConcatOffset, _ListToArray, _ArrayToList Pad, Reverse ( CPU ), ReverseV2 ( CPU ), Size, ExpandDims, Squeeze, StridedSlice, StridedSliceGrad, StridedSliceAssign, TileGrad, InvertPermutation, Transpose - Registration of Sycl kernels only for essential data types - Floor_div_real has been disabled for SYCL device - Device in control_flow_ops_py_test.py needed to be lower cased * Fixes & Version bump (#33) * Fix Unbuntu typo. (#38) unbuntu -> ubuntu * Add problem descriptions and solutions (#35) * Add ComputeCpp lib folder to LD_LIBRARY_PATH * Add ImportError problem + solution If you get the error message "ImportError: libComputeCpp.so: cannot open shared object file: No such file or directory", make sure you have added the path to ComputeCpp's lib folder to your `LD_LIBRARY_PATH`. * Add another ImportError problem + solution If you get the error message "ImportError: cannot import name 'pywrap_tensorflow'" you may be standing in the TensorFlow directory. * Improvements to the SYCL device support * Registers FloorDiv, FloorMod and SoftMax Ops for SYCL device * Workaround for 0 bytes allocation for SYCL device (#42) * Sycl improvements (#44) - Eigen version bump - Extends Cast and Cwise ops benchmark to cover Sycl device - Extends device_lib_test.py to cover Sycl device - Registers int32, string and ResourceHandler to run on host for Enter and RefEnter Sycl Ops - Enables RecudeMax op for Sycl since Eigen implementation is ready - Registers Less op for Sycl device * Improved the formatting of the SYCL code * Fixed compilation error. * Made sure that using test sessions with force_gpu=True forces the placement on a gpu device even if none is detected.
@NitinMahajan1 Hi. Try to install it as follows:
It will install perfectly. |
iget this error: |
@ehfo0 It requires Python 3.5 |
@ehfo0 : when you want to download the wheel package, pay attention to the |
@sunsided and @Coderx7: Thanks for helping out @ehfo0! This thread is getting a bit long, so I'm going to lock it for new conversation. If you have new questions about Windows support, please try Stack Overflow first, or open a new issue here if there appears to be a bug or you have a new feature request. |
I just learned about TensorFlow and I want to install on Windows 7, 64. I have both Python 2.7 and 3.5 on my PC.
Thanks,
The text was updated successfully, but these errors were encountered: