Skip to content

Windows support #42

Description

@aebk2015

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,

Activity

  1. filR commented on Nov 9, 2015

    @filR

    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.

  2. urish commented on Nov 9, 2015

    @urish

    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 :)

  3. aebk2015 commented on Nov 9, 2015

    @aebk2015
    Author

    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)
    .

  4. aebk2015 commented on Nov 9, 2015

    @aebk2015
    Author

    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)
    .

  5. urish commented on Nov 9, 2015

    @urish

    @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
  6. aebk2015 commented on Nov 10, 2015

    @aebk2015
    Author

    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)
    .

  7. den-run-ai commented on Nov 10, 2015

    @den-run-ai

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

  8. vrv commented on Nov 10, 2015

    @vrv

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

  9. jgharris7 commented on Nov 22, 2015

    @jgharris7

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

  10. Wizardofoddz commented on Nov 28, 2015

    @Wizardofoddz

    @jgharris7 run as admin

  11. netinstructions commented on Dec 4, 2015

    @netinstructions

    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.

  12. Robot-HaoL commented on Dec 12, 2015

    @Robot-HaoL

    where is the version tensorflow that supporting windows ? thank you

  13. arose13 commented on Dec 26, 2015

    @arose13

    TensorFlow needs a windows compatible version please!

  14. David-OConnor commented on Dec 30, 2015

    @David-OConnor

    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.

  15. 122 remaining items

  16. sunsided commented on Jan 6, 2017

    @sunsided

    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. 🙈

  17. changed the title [-]How to install TensorFlow on Windows[/-] [+]Windows support[/+] on Jan 7, 2017
  18. dsblr commented on Jan 21, 2017

    @dsblr

    This below link explain step by step with screenshot to install tensorflow on windows, docker not required.
    http://start2deeplearning.blogspot.com

  19. raphaccgil commented on Feb 1, 2017

    @raphaccgil

    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?

  20. anujdutt9 commented on Feb 1, 2017

    @anujdutt9

    @raphaccgil Hi. Tensorflow is not yet supported on Python 2.7 on Windows System. Instead you can do the following:

    1. Install Python 3/3.5 [64-bit]
    2. Go to python installation folder using CMD
    3. cd to Scripts folder.
    4. Use command:
      pip3.5.exe install tensorflow

    It will install perfectly.
    Check your installation using:
    import tensorflow as tf
    in IDLE.
    Hope this helps :)

  21. added a commit that references this issue on Feb 21, 2017
  22. NitinMahajan1 commented on Feb 26, 2017

    @NitinMahajan1

    image

    Tried installing GPU and CPU versions.
    Cannot install either and I am getting error as per screenshot above.

    Info -
    I have Anaconda 3 installed on my system
    Python 3.6
    Windows 10
    i7 16 gigs ram
    Intel HD Graphics 520

  23. anujdutt9 commented on Feb 26, 2017

    @anujdutt9

    @NitinMahajan1 Hi. Try to install it as follows:

    1. Install Python 3/3.6 [64-bit]
    2. Go to python installation folder using CMD
    3. cd to Scripts folder.
    4. Use command:
      pip3.6.exe install tensorflow

    It will install perfectly.
    Check your installation using:
    import tensorflow as tf
    in IDLE.
    Hope this helps :)

  24. ehfo0 commented on Mar 6, 2017

    @ehfo0

    iget this error:
    tensorflow_gpu-1.0.0-cp35-cp35m-win_x86_64.whl is not a supported wheel on this platform.
    I have a geforce gtx 970 and windows 10 x64 home edition and anaconde python 3.6 is already installed!
    what is the problem?

  25. sunsided commented on Mar 6, 2017

    @sunsided

    @ehfo0 It requires Python 3.5

  26. Coderx7 commented on Mar 6, 2017

    @Coderx7

    @ehfo0 : when you want to download the wheel package, pay attention to the cp3x section.
    tensorflow_gpu-1.0.0-cp35-cp35m-win_x86_64.whl
    cp35 means it needs python 3.5!

  27. mrry commented on Mar 6, 2017

    @mrry
    Contributor

    @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.

  28. locked and limited conversation to collaborators on Mar 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions