Python
Install Python 3.11 via Homebrew:
brew install python@3.11
Locate the Python installation:
which python@3.11
Create and activate a virtual environment:
/opt/homebrew/bin/python3.11 -m venv env source env/bin/activate
Install necessary packages:
pip install opencv-python pip install mediapipe face-recognition
Export and install dependencies from
requirements.txt
:pip freeze > requirements.txt pip install -r requirements.txt
Last updated