TensorFlow installed with PDM not detecting GPU with M1 Pro

I tried to install dependencies with PDM for a project and found the inconvenience that TensorFlow does not detect the GPU of the M1 Pro. When I create a virtual environment with poetry I do not have the same problem.

Any hint on how to solve this inconvenience?

TensorFlow installed with PDM not detecting GPU with M1 Pro
 
 
Q