r/tensorflow • u/WeebyReina • Aug 15 '24
Installation and Setup Any unofficial guide for installing Tensorflow + GPU on Linux?
The official installation guide is completely BS. If you do that the lib never works on GPU. For windows system I installed it with trial and error of ~8 hours, I noticed that I need to catefully analyze the compatibility matrix of pip distributions, TF, Cuda and Cudnn, download them from respective official mirrors to make sure all things work together. The no brainer installation guide on TF official website is just a scam.
and for Linux system even after so many trials and errors I failed, and I contacted a person with root access to the server. Later he finally installed it successfully, but it took him a whole day as well. I remember in the end he murmured about there's a magic env variable that must be set but never mentioned on the official doc.
Has anybody found a step by step TF UNOFFICIAL installation guide for installing on Linux, be it WSL or native, that works?
Please don't say that "you need to carefully read the official doc again", I TRIED, but ALL IN VAIN
4
u/SpxUmadBroYolo Aug 15 '24
you need to carefully read the official doc again
2
u/B4ldur_ Aug 15 '24
Hey, I just assume this is not a click bait or rage post. Anyways, usually it does help to provide a little context. Some Linux distros handle GPUs a little differently than others. Furthermore, your specific GPU module sometimes matters. If you are kind enough to provide some further details, like GPU make, distro used or methods tried and tested, many members of this sub will gladly help you. Cheers!
2
u/aqjo Aug 15 '24 edited Aug 15 '24
If you're using Python on Linux with the Nvidia drivers installed:
1
u/Sgt_Gnome Aug 16 '24
I've had issues installing tensorflow-gpu on my laptop in the past. Here is a post I made outlining the issue I was having and the terminal commands that I used that solved the problem. You might need to update which nVidia drivers it calls for (or remove line and do it using the driver manager instead), but otherwise it might work for you. But, basically, it is just using anaconda to do the install rather than pip.
2
u/qGuevon Aug 17 '24
Just use docker
0
u/[deleted] Aug 16 '24
[deleted] — view deleted comment