r/tensorflow • • May 15 '26

Installation and Setup Need help installing tensorflow gpu on my arch linux machine.

So I use cachyOS (arch linux) and I have an RTX 3060 (laptop gpu). I've tried multiple articles, the website and videos but tensorflow doesn't detect my GPU. Guidance would be highly appreciated.

My machine:

Asus vivobook pro 15 OLED M6501RM

GPU: rtx 3060 6gb laptop gpu

Kernel: Linux 7.0.5-2-cachyOS

1 Upvotes

8 comments sorted by

2

u/VegetableLegal6737 May 15 '26

Try install TensorFlow and CUDA using this comand pip install tensorflow[and-cuda] And if you will have problem with detecting GPU by Tensorflow this guide may help you https://github.com/Pretorian1/tensorflow-2.21-cuda-hotfix

2

u/Informal-Ad-3680 May 16 '26

Update: I successfully installed tensorflow[and-cuda] in a conda environment. The actual problem was my fish shell was unable to detect paths to necessary libraries. ChatGPT and some common sense made me overcome this haha.

Thanks a lot for your reply ❤️

1

u/lithium0003 May 15 '26

Which version of tensorflow do you want to install?
CUDA and cudnn library version should match to tensorflow require’s one.

1

u/Informal-Ad-3680 May 15 '26

I'm Just starting learning to use tensorflow for neural networks. I think I'd want a Version which will work with Nvidia, CUDA, Cudnn properly.

1

u/lithium0003 May 15 '26

3

u/Informal-Ad-3680 May 16 '26

Update: I successfully installed tensorflow[and-cuda] in a conda environment. The actual problem was my fish shell was unable to detect paths to necessary libraries. ChatGPT and some common sense made me overcome this haha.

Thanks a lot for your reply ❤️

2

u/Informal-Ad-3680 May 15 '26

Now I understand why my tensorflow was not detecting gpu. Because my CUDA version is 13.2 😂

Well thank you. Let me try downgrading and try reinstalled tensorflow.

1

u/NevinBenmaa-78 1d ago

how are you installing it right now, through system packages or pip? Rolling release distros usually push toolkit versions that are way too new for the current stable release, so bundling the dependencies inside a local python environment is way less painful