How to install TensorFlow in Windows - 2024 Guide

Поділитися
Вставка
  • Опубліковано 8 вер 2024

КОМЕНТАРІ • 77

  • @RELUvance
    @RELUvance  4 місяці тому +4

    I hope this video helped you with your TensorFlow installation - it still surprises me how [unnecessarily] difficult it can be to get installed properly, especially with the GPU. Please reply and let me know which method worked for you!

    • @FtheIneffable
      @FtheIneffable 3 місяці тому +1

      Liked, commented, and commenting here to tell you thank you from the bottom of my heart!

    • @mdabubakarchowdhurysunny2846
      @mdabubakarchowdhurysunny2846 3 місяці тому

      would ykou tell me its help anaconda shell

    • @RELUvance
      @RELUvance  3 місяці тому

      @@mdabubakarchowdhurysunny2846 sorry, I don’t understand what you are asking

    • @mdabubakarchowdhurysunny2846
      @mdabubakarchowdhurysunny2846 3 місяці тому

      @@RELUvance i want to ask you tensorflow gpu doesn"t install conda environment , would yoiu like to tell us how i used install conda

    • @RELUvance
      @RELUvance  3 місяці тому

      @mdabubakarchowdhurysunny2846 At 5:21 in the video it explains how to install miniconda, which is a “lite” version of the full anaconda.

  • @mihaillomatsky5563
    @mihaillomatsky5563 22 дні тому +2

    You are a wizard, Man! That's the simple and full installation guides, that are so necessary for beginners, like me!👍👍👍

  • @shashankbhutiya9236
    @shashankbhutiya9236 Місяць тому +1

    Explained using Multiple methods, Is the best part for me.

  • @akashgarg5770
    @akashgarg5770 29 днів тому +1

    Thank you so much, I was struggling for 2 days before I found your tutorial.

  • @FtheIneffable
    @FtheIneffable 3 місяці тому

    You just helped me overcome the current, biggest roadblock I had to starting my ML/AI journey. I and my daughters thank you, endlessly.

    • @RELUvance
      @RELUvance  3 місяці тому

      I'm so glad that I could help!! Yes, TensorFlow is one of the most important packages you need to get started, and it's one of the hardest to get working properly... which method did you end up using from the video?

  • @peterbrunner6608
    @peterbrunner6608 10 днів тому +1

    Hi Dustin first thank you for a logical step by step video listing different methods in one video. Question: did you add any paths to the Enviroment Variables in Windows ? thanks again 👌

    • @RELUvance
      @RELUvance  10 днів тому

      Hi Peter, no, I didn’t make any changes to windows paths.

    • @peterbrunner6608
      @peterbrunner6608 10 днів тому

      @@RELUvance Okay thank you !

  • @jn8194
    @jn8194 3 місяці тому

    You are golden! Thank you verry much for all the teachings it was a great help in my academic works. May you have many nice days - as many as you saved my days from tears and sorrows with this tutorial! Cheers!

    • @RELUvance
      @RELUvance  3 місяці тому

      I’m glad you enjoyed!

  • @Luminate-mn7cf
    @Luminate-mn7cf 2 місяці тому +1

    thats sad caz many new lib req new version of tensorflow or keras , btw it worked . tq sir!

    • @RELUvance
      @RELUvance  2 місяці тому

      Glad it worked for you!

  • @adrianarcega1691
    @adrianarcega1691 24 дні тому +2

    Thank you so much, you saved me HAHAHAH

  • @sowjanyay3424
    @sowjanyay3424 3 місяці тому +1

    excellent...this video helped me a lot

    • @RELUvance
      @RELUvance  3 місяці тому

      Fantastic!

    • @sowjanyay3424
      @sowjanyay3424 3 місяці тому

      @@RELUvance sir, can you please show how to install Tensorflow+GPU on WSL2 environment without dockers help

    • @RELUvance
      @RELUvance  3 місяці тому

      Yes, I am planning to make a separate video on that.

  • @NowshinAlam
    @NowshinAlam Місяць тому +1

    Thank you very much for your guide! It helped me a lot to set up the latest tensorflow gpu version in windows. Finally my GPU is showing up when importing tensorflow.👍
    However, I'm getting 3 warnings, saying "Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered" and 2 mores similar messages with cuDNN and cuBLAS. Have you ever encountered such messages?

  • @Cavz001
    @Cavz001 24 дні тому +1

    Great video! Can I install TF in a venv on cmd prompt instead of conda?

    • @RELUvance
      @RELUvance  22 дні тому

      Yes you can use venv too.

  • @martinamilo6153
    @martinamilo6153 Місяць тому +1

    Thanks alot.. would have preferred if the video was a little bit clearer.. although it was very helpful and precise..

  • @rn8580
    @rn8580 Місяць тому

    Thank you! That's the only tutorial that worked for me. However, I just wanna know if it is possible to run VScode in the method3/docker.

  • @zulfiqaralisyed4640
    @zulfiqaralisyed4640 3 місяці тому +1

    Thank you for this video...

    • @RELUvance
      @RELUvance  3 місяці тому

      No problem! Hope that it helped you.

  • @daedalusrasmus3278
    @daedalusrasmus3278 4 місяці тому +1

    Wow, this is great, I have a question though, what about working with notebooks? Is there a way to be able to run it from vscode? The kernel isn't explicitly shown prolly 'cuz it's in a container. I've seen some tutorials about using the "WSL" and "Dev Containers" extensions but am still experimenting as to how to make them all work together. Still, I'm thankful that I found a tutorial that could utilize newer versions of TF. Edit: This is with regards to the Docker TF Installation

    • @RELUvance
      @RELUvance  4 місяці тому

      Hi @daedalusrasmus3278 - glad that you found it helpful! Yes, there's a docker version of TensorFlow that uses notebooks as well, but to be honest I haven't tried using VScode with it through docker. To open a notebook version in a docker container, use this:
      docker run --gpus all -p 8888:8888 -it tensorflow/tensorflow:latest-gpu-jupyter
      ... and then you can access the notebook from a web browser.

  • @keshavranjith8212
    @keshavranjith8212 Місяць тому +1

    I am extremely new to this space. I just started neural networks and my processing times in google colab has been humungous. I figured its because its not using my gpu eventhough i use the t4gpu runtime. So i went with this tutorial and downloaded the docker and completed every step and it works. But how can I now use my jupyter notebook file?

    • @RELUvance
      @RELUvance  Місяць тому

      There’s a different docker file you can use that includes Jupyter notebook… scroll through the comments a bit and you’ll find the one where I responded to someone else… use that command

  • @okjdoc482
    @okjdoc482 3 місяці тому

    finally a latest video . thank u dude

    • @RELUvance
      @RELUvance  3 місяці тому +1

      Yeah that’s why I made it… all the other videos are so out of date.

  • @botobeni
    @botobeni 3 місяці тому +1

    thank you

  • @Yo_Lilith
    @Yo_Lilith Місяць тому

    I followed all these steps for CPU and GPU and I am still getting errors when I try to import tensorflow :(

  • @botobeni
    @botobeni 3 місяці тому +1

    it works well

  • @aratakiitto002
    @aratakiitto002 2 місяці тому

    i have a laptop with intel iris xe graphics, integrated gpu can i run tensorflow?

  • @nyanhtetaung78
    @nyanhtetaung78 Місяць тому

    I have got all the installation done. how can i use it from jupyter notebook?

  • @botobeni
    @botobeni 3 місяці тому +1

    you are amazing

  • @rgb8534
    @rgb8534 2 місяці тому

    Which is the best method among these 3?

    • @RELUvance
      @RELUvance  2 місяці тому

      Option 2 is the best if you don’t need the absolute latest gpu version (most people).

  • @kaustubhkubitkar6115
    @kaustubhkubitkar6115 2 місяці тому

    after installing tensorflow gpu how to access it from the jupyter notebook as there is jupyter pre install in my pc through ananconda and in same command line i installed tensorflow but i was anable to get it on my jupyter notebook how to do it please help me out

  • @rubensrogato2372
    @rubensrogato2372 2 місяці тому +1

    I truly appreciate it.

    • @RELUvance
      @RELUvance  2 місяці тому

      I’m glad it helped!

  • @akhilagarwal2132
    @akhilagarwal2132 2 місяці тому

    After doing this, can i use tensorflow in jupyter lab?

    • @RELUvance
      @RELUvance  2 місяці тому

      Yes, if you run Jupyter from within the Tensorflow environment you created.

  • @terraintactician
    @terraintactician 2 місяці тому

    Why did you use python version 3.9 for the windows for tensorflow installation?

    • @RELUvance
      @RELUvance  2 місяці тому

      That’s the version that is officially supported by the version of tensorflow being installed.

    • @terraintactician
      @terraintactician 2 місяці тому

      @@RELUvance After installing the tensorflow and using jupyter notebook, when I run the following code cell, I get the error - The kernel appears to have died. It will restart automatically. Do you have any solution for this?
      Code:
      linear_layer = tf.keras.layers.Dense(units=1, activation = 'linear', )
      a1 = linear_layer(X_train[0].reshape(1,1))
      print(a1)

  • @edgareglis7249
    @edgareglis7249 3 місяці тому

    As I understand there is no more version 2.10 available, as I get this (tf-gpu) PS C:\Users\edgar> pip install tensorflow==2.10
    Defaulting to user installation because normal site-packages is not writeable
    ERROR: Could not find a version that satisfies the requirement tensorflow==2.10 (from versions: 2.16.0rc0, 2.16.1)
    ERROR: No matching distribution found for tensorflow==2.10

    • @RELUvance
      @RELUvance  3 місяці тому

      Hi Edgar, are you using the command I used in the video? (pip install "tensorflow

  • @Psykh-e
    @Psykh-e 4 місяці тому +1

    👑

  • @vito8253
    @vito8253 3 місяці тому

    should I install TensorFlow native CPU and GPU versions together or only one of them is allowed?

    • @RELUvance
      @RELUvance  3 місяці тому

      If you are installing them via conda or docker like I showed in the video you can install them both if you want because they will be in separate environments. I would only install the gpu version though if you are planning on running really compute intensive models. Otherwise the cpu version will be fine on its own.

  • @kuleenthejas8382
    @kuleenthejas8382 3 місяці тому

    i just wanted to know whether we have to use docker run - -gpus all -it -v $PWD:/working -w /working tensorflow/tensorflow:latest-gpu bash, every time we reopen the linux shell after closing it or ??is there another way to go about it ,also to run the req python script we have use the above mentioned cmd and then call the script ?or is there some other way to do this

    • @RELUvance
      @RELUvance  3 місяці тому

      There are actually many ways to work with docker containers but I tried to keep the video simple and just showed this one example. For example, you can actually instantiate a docker container as a "daemon" with this command: docker run --gpus all -dit --name tf -v $PWD:/working -w /working tensorflow/tensorflow:latest-gpu bash
      This will cause the container to be persistent even after stopping the process or restarting the computer, and can be re-started by using: docker attach tf (replacing tf with whatever name you used in the preceding command.
      To run a script immediately instead of launching the container as a shell you can replace "bash" as follows: docker run - -gpus all -it -v $PWD:/working -w /working tensorflow/tensorflow:latest-gpu python [script name here]
      Hope this helps! As you can see it gets complicated depending on what you want to do, and this was beyond what I wanted to cover in the video. Let me know if you think a separate video on using docker would be helpful, and I might be able to make one.

    • @kuleenthejas8382
      @kuleenthejas8382 3 місяці тому

      @@RELUvance thanks for the clarification
      Also a video on using docker for python scripts via the vscode or any other ide would be helpful

  • @aratakiitto002
    @aratakiitto002 2 місяці тому

    i have a laptop with intel iris xe graphics, integrated gpu

    • @RELUvance
      @RELUvance  2 місяці тому

      You need an Nvidia graphics card for the GPU-enabled version to work.

  • @glitcher8784
    @glitcher8784 3 місяці тому

    how can I use this in visual studio community?

    • @RELUvance
      @RELUvance  3 місяці тому

      The 2nd method I shows in the video actually has python installed natively in Windows so you should be able to fire up VS and use it directly within windows. For the docker use-case, it may be a bit more challenging because python and tensorflow are inside of a docker container. It's probably still possible, but I haven't explored this myself.

  • @khuzdaradventures5772
    @khuzdaradventures5772 2 місяці тому

    its cpu version

    • @RELUvance
      @RELUvance  2 місяці тому +1

      In the video I explain how to install both the gpu and cpu versions. Maybe I don’t understand your comment?

    • @khuzdaradventures5772
      @khuzdaradventures5772 2 місяці тому

      @@RELUvance can you solve problem in my next comment

  • @allenlin1309
    @allenlin1309 2 місяці тому +1

    Install tensorflow Bible thank you!🎉 Method 3 help me a lot

    • @RELUvance
      @RELUvance  2 місяці тому +1

      So glad that it worked for you!

  • @vegam05
    @vegam05 3 місяці тому

    When i tried to run the sample script to verify whether the docker works, it said: "docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
    See 'docker run --help'.", will this cause any issues?, i can always run it via 'sudo service docker start' tho

    • @RELUvance
      @RELUvance  3 місяці тому

      If you can run with sudo but not without, it sounds like setting up the user profile like I showed in the video didn’t work properly. Did you get any error messages when doing that? Try rebooting the computer too if you haven’t already.