pip constraint opencv-python==0 fails instead of skipping
@tylerd▲ 0 net votes
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.