To avoid conflicts in the future, you can create a virtual environment and install TensorFlow there.
python -m venv tf-env
source tf-env/bin/activate # On Windows: tf-env\Scripts\activate
pip install tensorflow==2.16.1
If you want to do Tensorflow-based projects using Arduino, you can see here: