Python

  1. Install Python 3.11 via Homebrew:

    brew install python@3.11
  2. Locate the Python installation:

    which python@3.11
  3. Create and activate a virtual environment:

    /opt/homebrew/bin/python3.11 -m venv env
    
    source env/bin/activate
  4. Install necessary packages:

    pip install opencv-python
    pip install mediapipe face-recognition
  5. Export and install dependencies from requirements.txt:

    pip freeze > requirements.txt
    pip install -r requirements.txt

Last updated