GPU under TensorFlow doesn't work under any circumstances /Windows 11

I cannot find the right versions of packages, especially Python itself so that
I achieve this goal:

print(tf.config.list_physical_devices(‘GPU’))

→
[PhysicalDevice(name=‘/physical_device:GPU:0’, device_type=‘GPU’)]
# packages in environment at C:\Users\Hynek\myenv4:
#
# Name                    Version                   Build  Channel
_tflow_select             2.3.0                       gpu
abseil-cpp                20211102.0           hd77b12b_0
absl-py                   1.4.0            py38haa95532_0
aiofiles                  22.1.0           py38haa95532_0
aiohttp                   3.8.5            py38h2bbff1b_0
aiosignal                 1.2.0              pyhd3eb1b0_0
aiosqlite                 0.18.0           py38haa95532_0
anyio                     3.5.0            py38haa95532_0
argon2-cffi               21.3.0             pyhd3eb1b0_0
argon2-cffi-bindings      21.2.0           py38h2bbff1b_0
astor                     0.8.1            py38haa95532_0
asttokens                 2.0.5              pyhd3eb1b0_0
astunparse                1.6.3                      py_0
async-timeout             4.0.2            py38haa95532_0
attrs                     23.1.0           py38haa95532_0
babel                     2.11.0           py38haa95532_0
backcall                  0.2.0              pyhd3eb1b0_0
beautifulsoup4            4.12.2           py38haa95532_0
blas                      1.0                         mkl
bleach                    4.1.0              pyhd3eb1b0_0
blinker                   1.6.2            py38haa95532_0
brotli                    1.0.9                h2bbff1b_7
brotli-bin                1.0.9                h2bbff1b_7
brotlipy                  0.7.0           py38h2bbff1b_1003
c-ares                    1.19.1               h2bbff1b_0
ca-certificates           2023.08.22           haa95532_0
cachetools                4.2.2              pyhd3eb1b0_0
certifi                   2023.7.22        py38haa95532_0
cffi                      1.15.1           py38h2bbff1b_3
charset-normalizer        2.0.4              pyhd3eb1b0_0
click                     8.0.4            py38haa95532_0
colorama                  0.4.6            py38haa95532_0
comm                      0.1.2            py38haa95532_0
contourpy                 1.0.5            py38h59b6b97_0
cryptography              41.0.3           py38h89fc84f_0
cudatoolkit               11.8.0               hd77b12b_0
cudnn                     8.9.2.26               cuda11_0
cycler                    0.11.0             pyhd3eb1b0_0
debugpy                   1.6.7            py38hd77b12b_0
decorator                 5.1.1              pyhd3eb1b0_0
defusedxml                0.7.1              pyhd3eb1b0_0
entrypoints               0.4              py38haa95532_0
executing                 0.8.3              pyhd3eb1b0_0
fonttools                 4.25.0             pyhd3eb1b0_0
freetype                  2.12.1               ha860e81_0
frozenlist                1.3.3            py38h2bbff1b_0
gast                      0.4.0              pyhd3eb1b0_0
giflib                    5.2.1                h8cc25b3_3
glib                      2.69.1               h5dc1a3c_2
google-auth               2.22.0           py38haa95532_0
google-auth-oauthlib      0.4.4              pyhd3eb1b0_0
google-pasta              0.2.0              pyhd3eb1b0_0
grpc-cpp                  1.48.2               hfe90ff0_1
grpcio                    1.48.2           py38hfe90ff0_1
h5py                      2.10.0           py38h5e291fa_0
hdf5                      1.10.4               h7ebc959_0
icc_rt                    2022.1.0             h6049295_2
icu                       58.2                 ha925a31_3
idna                      3.4              py38haa95532_0
importlib-metadata        6.0.0            py38haa95532_0
importlib_metadata        6.0.0                hd3eb1b0_0
importlib_resources       5.2.0              pyhd3eb1b0_1
intel-openmp              2023.1.0         h59b6b97_46319
ipykernel                 6.25.0           py38h9909e9c_0
ipython                   8.12.2           py38haa95532_0
ipython_genutils          0.2.0              pyhd3eb1b0_1
ipywidgets                8.0.4            py38haa95532_0
jedi                      0.18.1           py38haa95532_1
jinja2                    3.1.2            py38haa95532_0
jpeg                      9e                   h2bbff1b_1
json5                     0.9.6              pyhd3eb1b0_0
jsonschema                4.17.3           py38haa95532_0
jupyter                   1.0.0            py38haa95532_8
jupyter_client            7.4.9            py38haa95532_0
jupyter_console           6.6.3            py38haa95532_0
jupyter_core              5.3.0            py38haa95532_0
jupyter_events            0.6.3            py38haa95532_0
jupyter_server            1.23.4           py38haa95532_0
jupyter_server_fileid     0.9.0            py38haa95532_0
jupyter_server_ydoc       0.8.0            py38haa95532_1
jupyter_ydoc              0.2.4            py38haa95532_0
jupyterlab                3.6.3            py38haa95532_0
jupyterlab_pygments       0.1.2                      py_0
jupyterlab_server         2.22.0           py38haa95532_0
jupyterlab_widgets        3.0.5            py38haa95532_0
keras-applications        1.0.8                      py_1
keras-preprocessing       1.1.2              pyhd3eb1b0_0
kiwisolver                1.4.4            py38hd77b12b_0
krb5                      1.20.1               h5b6d351_0
lerc                      3.0                  hd77b12b_0
libbrotlicommon           1.0.9                h2bbff1b_7
libbrotlidec              1.0.9                h2bbff1b_7
libbrotlienc              1.0.9                h2bbff1b_7
libclang                  14.0.6          default_hb5a9fac_1
libclang13                14.0.6          default_h8e68704_1
libdeflate                1.17                 h2bbff1b_1
libffi                    3.4.4                hd77b12b_0
libiconv                  1.16                 h2bbff1b_2
libpng                    1.6.39               h8cc25b3_0
libpq                     12.15                h906ac69_1
libprotobuf               3.20.3               h23ce68f_0
libsodium                 1.0.18               h62dcd97_0
libtiff                   4.5.1                hd77b12b_0
libwebp                   1.3.2                hbc33d0d_0
libwebp-base              1.3.2                h2bbff1b_0
libxml2                   2.10.4               h0ad7f3c_1
libxslt                   1.1.37               h2bbff1b_1
lxml                      4.9.3            py38h09808a7_0
lz4-c                     1.9.4                h2bbff1b_0
markdown                  3.4.1            py38haa95532_0
markupsafe                2.1.1            py38h2bbff1b_0
matplotlib                3.6.2            py38haa95532_0
matplotlib-base           3.6.2            py38h1094b8e_0
matplotlib-inline         0.1.6            py38haa95532_0
mistune                   0.8.4           py38he774522_1000
mkl                       2023.1.0         h6b88ed4_46357
mkl-service               2.4.0            py38h2bbff1b_1
mkl_fft                   1.3.8            py38h2bbff1b_0
mkl_random                1.2.4            py38h59b6b97_0
multidict                 6.0.2            py38h2bbff1b_0
munkres                   1.1.4                      py_0
nbclassic                 0.5.5            py38haa95532_0
nbclient                  0.5.13           py38haa95532_0
nbconvert                 6.5.4            py38haa95532_0
nbformat                  5.9.2            py38haa95532_0
nest-asyncio              1.5.6            py38haa95532_0
notebook                  6.5.4            py38haa95532_1
notebook-shim             0.2.2            py38haa95532_0
numpy                     1.24.4                   pypi_0    pypi
numpy-base                1.19.5           py38h9413944_5
oauthlib                  3.2.2            py38haa95532_0
openjpeg                  2.4.0                h4fc8c34_0
openssl                   3.0.11               h2bbff1b_2
opt_einsum                3.3.0              pyhd3eb1b0_1
packaging                 23.1             py38haa95532_0
pandocfilters             1.5.0              pyhd3eb1b0_0
parso                     0.8.3              pyhd3eb1b0_0
pcre                      8.45                 hd77b12b_0
pickleshare               0.7.5           pyhd3eb1b0_1003
pillow                    10.0.1           py38h045eedc_0
pip                       23.3             py38haa95532_0
pkgutil-resolve-name      1.3.10           py38haa95532_0
platformdirs              3.10.0           py38haa95532_0
ply                       3.11                     py38_0
pooch                     1.7.0            py38haa95532_0
prometheus_client         0.14.1           py38haa95532_0
prompt-toolkit            3.0.36           py38haa95532_0
prompt_toolkit            3.0.36               hd3eb1b0_0
protobuf                  3.20.3           py38hd77b12b_0
psutil                    5.9.0            py38h2bbff1b_0
pure_eval                 0.2.2              pyhd3eb1b0_0
pyasn1                    0.4.8              pyhd3eb1b0_0
pyasn1-modules            0.2.8                      py_0
pycparser                 2.21               pyhd3eb1b0_0
pygments                  2.15.1           py38haa95532_1
pyjwt                     2.4.0            py38haa95532_0
pyopenssl                 23.2.0           py38haa95532_0
pyparsing                 3.0.9            py38haa95532_0
pyqt                      5.15.7           py38hd77b12b_0
pyqt5-sip                 12.11.0          py38hd77b12b_0
pyreadline                2.1                      py38_1
pyrsistent                0.18.0           py38h196d8e1_0
pysocks                   1.7.1            py38haa95532_0
python                    3.8.18               h1aa4202_0
python-dateutil           2.8.2              pyhd3eb1b0_0
python-fastjsonschema     2.16.2           py38haa95532_0
python-json-logger        2.0.7            py38haa95532_0
pytz                      2023.3.post1     py38haa95532_0
pywin32                   305              py38h2bbff1b_0
pywinpty                  2.0.10           py38h5da7b33_0
pyyaml                    6.0              py38h2bbff1b_1
pyzmq                     23.2.0           py38hd77b12b_0
qt-main                   5.15.2               h879a1e9_9
qt-webengine              5.15.9               h5bd16bc_7
qtconsole                 5.4.2            py38haa95532_0
qtpy                      2.2.0            py38haa95532_0
qtwebkit                  5.212                h2bbfb41_5
re2                       2022.04.01           hd77b12b_0
requests                  2.31.0           py38haa95532_0
requests-oauthlib         1.3.0                      py_0
rfc3339-validator         0.1.4            py38haa95532_0
rfc3986-validator         0.1.1            py38haa95532_0
rsa                       4.7.2              pyhd3eb1b0_1
scipy                     1.10.1           py38hdcfc7df_1
send2trash                1.8.0              pyhd3eb1b0_1
setuptools                68.0.0           py38haa95532_0
sip                       6.6.2            py38hd77b12b_0
six                       1.16.0             pyhd3eb1b0_1
sniffio                   1.2.0            py38haa95532_1
soupsieve                 2.5              py38haa95532_0
sqlite                    3.41.2               h2bbff1b_0
stack_data                0.2.0              pyhd3eb1b0_0
tbb                       2021.8.0             h59b6b97_0
tensorboard               2.10.0           py38haa95532_0
tensorboard-data-server   0.6.1            py38haa95532_0
tensorboard-plugin-wit    1.8.1            py38haa95532_0
tensorflow                2.3.0           mkl_py38h8557ec7_0
tensorflow-base           2.3.0           eigen_py38h75a453f_0
tensorflow-estimator      2.6.0              pyh7b7c402_0
tensorflow-gpu            2.3.0                he13fc11_0
termcolor                 2.1.0            py38haa95532_0
terminado                 0.17.1           py38haa95532_0
threadpoolctl             3.2.0                    pypi_0    pypi
tinycss2                  1.2.1            py38haa95532_0
tk                        8.6.12               h2bbff1b_0
toml                      0.10.2             pyhd3eb1b0_0
tomli                     2.0.1            py38haa95532_0
tornado                   6.3.3            py38h2bbff1b_0
traitlets                 5.7.1            py38haa95532_0
typing-extensions         4.7.1            py38haa95532_0
typing_extensions         4.7.1            py38haa95532_0
urllib3                   1.26.16          py38haa95532_0
vc                        14.2                 h21ff451_1
vs2015_runtime            14.27.29016          h5e58377_2
wcwidth                   0.2.5              pyhd3eb1b0_0
webencodings              0.5.1                    py38_1
websocket-client          0.58.0           py38haa95532_4
werkzeug                  2.2.3            py38haa95532_0
wheel                     0.41.2           py38haa95532_0
widgetsnbextension        4.0.5            py38haa95532_0
win_inet_pton             1.1.0            py38haa95532_0
winpty                    0.4.3                         4
wrapt                     1.14.1           py38h2bbff1b_0
xz                        5.4.2                h8cc25b3_0
y-py                      0.5.9            py38hb6bf4ef_0
yaml                      0.2.5                he774522_0
yarl                      1.8.1            py38h2bbff1b_0
ypy-websocket             0.8.2            py38haa95532_0
zeromq                    4.3.4                hd77b12b_0
zipp                      3.11.0           py38haa95532_0
zlib                      1.2.13               h8cc25b3_0
zstd                      1.5.5                hd43e919_0

Based on official documentation, Tensorflow isn’t supported on Windows 11. Also note the GPU version of Tensorflow (to say it so) isn’t supported any longer on Windows after Tensorflow 2.10 (VERY unfortunately).

That’s an explanatory answer, thank you very much for saving me. Can I do my work easily without TensorFlow, what is the substitue for TF ? BTW, this question is not relevant to this forum, but still I’m unable to run WSL Ubunutu on my Windows 11. I’ve tried uninstalling Ubuntu via wsl.exe many times and have tried everything which google says but with no success. But it either freezes or gives some error like 0x80370114 or 00000008d or 000000001d (this one after pressing ENTER).

Hi @Jan_Pax , You may need to install the correct CUDA and cuDNN version to be compatible with installed TensorFlow 2.3 as mentioned in this Tested build Configuration enable the GPU support.

to

Please follow the step by step instructions mention in this TF Install official link to install TF with GPU and let us know if the issue still persists. Thank you.

1 Like