See https://github.com/Rassibassi/mediapipeDemos for many more demos
I use anaconda to run my code, so here is an example how to get it running with anaconda.
git clone https://github.com/Rassibassi/mediapipeFacegeometryPython.git
cd mediapipeFacegeometryPython
conda env create -f environment.yml
conda activate mpipe_example
python head_posture_rt.py