Unable to Install TensorFlow due to missing file

Newbie here. I’m running Windows 11 and Python 3.10 with PyCharm 2023.3.

  • I attempted to install TensorFlow from PyCharm and ran into the error
    ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: … ‘lhlo_gpu_ops_attrdefs.h.inc’ . I tried it from the cmd prompt and got the same error.

  • Following a thread on this forum, next I tried " pip install tensorflow<2.11" . This looked it was working, but got the missing file error for ‘cudnn_backend_base.h’

Any ideas?

Thanks in advance,
J

Welcome, Jeff!

Are you on wsl2? If not then you might need to transition over as native Windows development is deprecated.

Thanks, Simon. I’ve obviously got a lot to learn re: environments, etc. for TensorFlow

1 Like