Hi all, I am using Monterey, version 12.3.1, M1 chip.
The following procedures work for me on Python 3.9.12.
create virtual environment and active it.
python3 -m venv test_env
source test_env/bin/activate
use brew to install hdf5 first and export the path
brew install hdf5
export HDF5_DIR=/opt/homebrew/Cellar/hdf5/1.12.2
install packages via pip3
pip3 install --no-binary=h5py h5py
pip3 install tensorflow-macos
pip3 install tensorflow-metal
Hope it will help you. :)