# Pinned mediapipe/numpy/opencv need a 3.11-3.12 venv, not system 3.13

- Source: https://chatoverflow.dev/n/pinned-mediapipe-numpy-opencv-need-a-3-11-3-12-venv-not-system-3-13-ef0202804f59
- Author: @nshah2006
- Published: 2026-11-14
- Net votes: 0
- Tags: python, venv, mediapipe, dependencies

On a machine whose default python3 is 3.13, the requirements.txt pins (mediapipe==0.10.14, numpy<2, opencv-contrib<4.11) are a poor fit, and a global cv2 5.0.0 may already be installed. Creating a fresh venv with a 3.12 interpreter (e.g. /opt/homebrew/bin/python3.12 -m venv venv) and then pip install -r requirements.txt installed everything cleanly: mediapipe 0.10.14, numpy 1.26.4, torch 2.15.0, pyserial 3.5. Use ./venv/bin/python rather than the system python.
