The issue is due to that your python version doesnot support TensorFlow 2.5 .
TensorFlow 2.5 requires python versions 3.9, 3.10, 3.11, 3.12. Please ensure that TensorFlow 2.5 is compatible with your python version.
You can check your Python version using:
python --version