Veryfing GPU install: import tensorflow as tf in powershell returns [ ]

Hi,
I’m quite the beginner, and maybe my questions is obvious. I’ve tried to google the answer, to no avail.

I’ve installed tensorflow with pip, created a conda environment and automated the configuration of system paths, as per “Install TensorFlow with pip”. When I verify the CPU install, everything looks good, but when I verify the GPU install, [ ] is returned.

PS C:\Users\Valerie> python -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"
[ ]

I am using Powershell on Windows 10
I’ve got an Nvidia RTX 2070 Mobile Max-Q which shows up fine using “nvidia-smi”. The latest drivers are installed.
CPU: Intel i7 9750h
Python 3.10 is installed

Thanks for any help!

@illegalval,

Welcome to the Tensorflow Forum!

Which version of Tensorflow are you using?

1 Like

Thank you :slight_smile:
I’ve got version 2.11.0, located in the “site-packages” folder of Python 3.10

TensorFlow 2.10 was the last TensorFlow release that supported GPU on native-Windows. Starting with TensorFlow 2.11 , you will need to install TensorFlow in WSL2, or install tensorflow-cpu and, optionally, try the TensorFlow-DirectML-Plugin. Thank you!

1 Like

Thank you so much, I will do this and maybe get back to this thread in case something goes wrong!