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!
@FtheIneffable7 ай бұрын
Liked, commented, and commenting here to tell you thank you from the bottom of my heart!
@mdabubakarchowdhurysunny28467 ай бұрын
would ykou tell me its help anaconda shell
@RELUvance7 ай бұрын
@@mdabubakarchowdhurysunny2846 sorry, I don’t understand what you are asking
@mdabubakarchowdhurysunny28467 ай бұрын
@@RELUvance i want to ask you tensorflow gpu doesn"t install conda environment , would yoiu like to tell us how i used install conda
@RELUvance7 ай бұрын
@mdabubakarchowdhurysunny2846 At 5:21 in the video it explains how to install miniconda, which is a “lite” version of the full anaconda.
@andychess2 ай бұрын
I've spent literally the whole day trying to get a working version of TF set up on my PC after Google withdrew the free colab GPU support. This video has been a lifesaver! Thank you so much for taking the time to make it!
@RELUvance2 ай бұрын
I'm so glad that I could help! And sorry to those who have recently posted comments saying that they are still running into issues.... it's frustrating that Tensorflow can be so difficult to get working properly.
@ML5563-p9t4 ай бұрын
You are a wizard, Man! That's the simple and full installation guides, that are so necessary for beginners, like me!👍👍👍
@jamiewolpert60692 ай бұрын
Man you just saved my degree in 20 minutes, thank you so much!
@RELUvance2 ай бұрын
Glad I could help!
@Jesusrhivan7 күн бұрын
Really appreciate this content. I have been trying to download Tensor Flow all the day. Really thankssss
@venietvideoКүн бұрын
Success with a tweak on 2024-12-21: I tried the Windows native versions and succeeded with both tf-cpu and tf-gpu. Two remarks: 1. tf-cpu works fine with python=3.12 too 2. tf-gpu needs python=3.9 and this tweak: pip install "numpy
@RELUvanceКүн бұрын
Glad it helped… yes the reason I made this video was because I had gone through a week of frustration myself!
@shashankbhutiya92364 ай бұрын
Explained using Multiple methods, Is the best part for me.
@FtheIneffable7 ай бұрын
You just helped me overcome the current, biggest roadblock I had to starting my ML/AI journey. I and my daughters thank you, endlessly.
@RELUvance7 ай бұрын
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?
@akashgarg57704 ай бұрын
Thank you so much, I was struggling for 2 days before I found your tutorial.
@RELUvance4 ай бұрын
Glad it helped!
@KholilDekkerClasher2 ай бұрын
I have followed the steps up to minute 11:16 but there is a problem at step minute 11:16 I can't import tensorflow as ft on gpu. Module Import Failure: The error occurred while importing TensorFlow modules. Specifically, TensorFlow attempted to use _pywrap_bfloat16.TF_bfloat16_type(), which is likely related to the bfloat16 data type. Python Version Compatibility: The error suggests that TensorFlow is having trouble converting a function return value to a Python type, indicating an issue with compatibility between TensorFlow, Python, or the environment setup (e.g., CUDA/cuDNN versions if using a GPU). Environment Issue: If you are using a GPU, the error might stem from an incompatible CUDA version or missing dependencies. Help Me Tn.
@jn81947 ай бұрын
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!
@RELUvance7 ай бұрын
I’m glad you enjoyed!
@icontrolthespiceАй бұрын
the only tutorial that worked for me
@lestutosdejielo18 күн бұрын
Hi everyone ! TY for the tuto 🙂 If the hello-world dont work for you (like me), try this ! sudo update-alternatives --config iptables Enter 1 to select iptables-legacy sudo service docker start, and Docker will start as expected! You can now see [OK] at the end of the line 😉
@brokensoul244620 күн бұрын
Last videos have tutuorial tensorflow on ubuntu, necessary to windows users?
@NowshinAlam4 ай бұрын
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?
@peterbrunner66083 ай бұрын
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 👌
@RELUvance3 ай бұрын
Hi Peter, no, I didn’t make any changes to windows paths.
@peterbrunner66083 ай бұрын
@@RELUvance Okay thank you !
@Warley.Araujo13 күн бұрын
Great Video Sir!!
@tmusic9913 күн бұрын
At GPU TensorFlow Installation in Docker running ' import tensorflow as tf ', I get 'Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered,' and similar responses for cuDNN and cuBLAS. How do I fix this?
@Cavz0014 ай бұрын
Great video! Can I install TF in a venv on cmd prompt instead of conda?
@RELUvance4 ай бұрын
Yes you can use venv too.
@keshavranjith82125 ай бұрын
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?
@RELUvance5 ай бұрын
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
@daedalusrasmus32787 ай бұрын
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
@RELUvance7 ай бұрын
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.
@rn85805 ай бұрын
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.
@tmusic9913 күн бұрын
At the Windows GPU installation, " import tensorflow as tf," you have to downgrade "numpy" to version 1.
@nidhalabidi11 күн бұрын
Did you find a solution, I am also getting the same thing
@tmusic9911 күн бұрын
@@nidhalabidi You can downgrade using the --upgrade flag it works both ways e.g pip install --upgrade numpy==1.10.1
@nidhalabidi11 күн бұрын
@@tmusic99 thank you!
@nyanhtetaung785 ай бұрын
I have got all the installation done. how can i use it from jupyter notebook?
@NaomiMisora10002 ай бұрын
Do you have the commands that you are typing to install ternsorflow ? I am to blind to see anything :(
@kaustubhkubitkar61156 ай бұрын
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
@okjdoc4827 ай бұрын
finally a latest video . thank u dude
@RELUvance7 ай бұрын
Yeah that’s why I made it… all the other videos are so out of date.
@Yo_Lilith5 ай бұрын
I followed all these steps for CPU and GPU and I am still getting errors when I try to import tensorflow :(
@aratakiitto0025 ай бұрын
i have a laptop with intel iris xe graphics, integrated gpu can i run tensorflow?
@terraintactician5 ай бұрын
Why did you use python version 3.9 for the windows for tensorflow installation?
@RELUvance5 ай бұрын
That’s the version that is officially supported by the version of tensorflow being installed.
@terraintactician5 ай бұрын
@@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)
@akhilagarwal21326 ай бұрын
After doing this, can i use tensorflow in jupyter lab?
@RELUvance5 ай бұрын
Yes, if you run Jupyter from within the Tensorflow environment you created.
@hadiuzzaman46323 ай бұрын
If it is input(print( tf.config.list_physical_devices('GPU')) ) it comes empty( [] ). What is the reason?
@RELUvance3 ай бұрын
It means that it is not detecting/using a GPU.
@hadiuzzaman46323 ай бұрын
There is only a dedicated GPU on my computer. There is no shared GPU. How can I solve it? If there is no shared GPU, would I install both the native Windows CPU-only TensorFlow installation and the native Windows GPU-enabled TensorFlow installation? Or install the native Windows GPU-enabled TensorFlow installation?
@RELUvance3 ай бұрын
@@hadiuzzaman4632 Have you tried both of the last two methods that I show in the video? Tensorflow can be very finicky... if one way doesn't work then you might need to try another.
@vito82537 ай бұрын
should I install TensorFlow native CPU and GPU versions together or only one of them is allowed?
@RELUvance7 ай бұрын
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.
@kuleenthejas83827 ай бұрын
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
@RELUvance7 ай бұрын
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.
@kuleenthejas83827 ай бұрын
@@RELUvance thanks for the clarification Also a video on using docker for python scripts via the vscode or any other ide would be helpful
@sowjanyay34246 ай бұрын
excellent...this video helped me a lot
@RELUvance6 ай бұрын
Fantastic!
@sowjanyay34246 ай бұрын
@@RELUvance sir, can you please show how to install Tensorflow+GPU on WSL2 environment without dockers help
@RELUvance6 ай бұрын
Yes, I am planning to make a separate video on that.
@edgareglis72496 ай бұрын
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
@RELUvance6 ай бұрын
Hi Edgar, are you using the command I used in the video? (pip install "tensorflow
@glitcher87847 ай бұрын
how can I use this in visual studio community?
@RELUvance7 ай бұрын
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.
@rgb85345 ай бұрын
Which is the best method among these 3?
@RELUvance5 ай бұрын
Option 2 is the best if you don’t need the absolute latest gpu version (most people).
@Luminate-mn7cf6 ай бұрын
thats sad caz many new lib req new version of tensorflow or keras , btw it worked . tq sir!
@RELUvance5 ай бұрын
Glad it worked for you!
@martinamilo61534 ай бұрын
Thanks alot.. would have preferred if the video was a little bit clearer.. although it was very helpful and precise..
@zulfiqaralisyed46407 ай бұрын
Thank you for this video...
@RELUvance7 ай бұрын
No problem! Hope that it helped you.
@adrianarcega16914 ай бұрын
Thank you so much, you saved me HAHAHAH
@RELUvance4 ай бұрын
You're welcome!!
@botobeni6 ай бұрын
it works well
@botobeni6 ай бұрын
thank you
@RELUvance6 ай бұрын
You're welcome!
@botobeni6 ай бұрын
you are amazing
@aratakiitto0025 ай бұрын
i have a laptop with intel iris xe graphics, integrated gpu
@RELUvance5 ай бұрын
You need an Nvidia graphics card for the GPU-enabled version to work.
@Psykh-e7 ай бұрын
👑
@khuzdaradventures57726 ай бұрын
its cpu version
@RELUvance6 ай бұрын
In the video I explain how to install both the gpu and cpu versions. Maybe I don’t understand your comment?
@khuzdaradventures57726 ай бұрын
@@RELUvance can you solve problem in my next comment
@rubensrogato23726 ай бұрын
I truly appreciate it.
@RELUvance6 ай бұрын
I’m glad it helped!
@vahidraeesi28012 ай бұрын
Thank you for you sharing this video. Every thing worked well and the same as you showed in this tutorial, but the "import tensorflow as tf" resulted in an error. file"c:......pywarp_tensorflow.py" line 70 in ... import error: Dll load failed while importing _pywrap_tensorflow_internal: a dynamic link library (DLL) initializiation routine failed.....
@vahidraeesi28012 ай бұрын
I have a k52jc ASUS laptop
@vegam056 ай бұрын
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
@RELUvance6 ай бұрын
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.
@allenlin13096 ай бұрын
Install tensorflow Bible thank you!🎉 Method 3 help me a lot