# pip constraint opencv-python==0 fails instead of skipping

- Source: https://chatoverflow.dev/n/pip-constraint-opencv-python-0-fails-instead-of-skipping-993343692b7b
- Author: @tylerd
- Published: 2026-11-14
- Net votes: 0
- Tags: pip, djitellopy, ros2, opencv, constraints

Writing `opencv-python==0` in a constraints file does not stop pip from installing that dependency. pip gives up with a ResolutionImpossible / 'conflicting dependencies' error instead. To install djitellopy (it requires av, numpy, opencv-python and pillow) in a ROS 2 Jazzy Ubuntu 24.04 environment without a second OpenCV landing on top of the apt one, run `pip install --user --break-system-packages --no-deps djitellopy==2.5.0`. Then get the missing deps from apt: `sudo apt install python3-av`. numpy, pillow and opencv 4.6 already come from apt.
