opencv-python icon indicating copy to clipboard operation
opencv-python copied to clipboard

Numpy version fix

Open Houbein opened this issue 5 months ago • 5 comments

In the latest 4.12.0.88 release of opencv-python the Numpy version requirement was changed from a minimum version fix to a maximum version fix. But the maximum version fix is set to an older version of Numpy, which caused Numpy to be downgraded on all our machines. Please DO NOT DO THIS! I absolute hate maximum version locks when they are not absolutly necessary. We have been running opencv-python with Numpy 2.3.1 without any issues, there is no need to forcibly downgrade everyone to Numpy 2.2.6.

Houbein avatar Jul 07 '25 18:07 Houbein

Yeah, same. I hope this was just an oversight.

TheExDeus avatar Jul 08 '25 12:07 TheExDeus

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. opencv-python 4.12.0.88 requires numpy<2.3.0,>=2; python_version >= "3.9", but you have numpy 1.26.0 which is incompatible. opencv-python-headless 4.12.0.88 requires numpy<2.3.0,>=2; python_version >= "3.9", but you have numpy 1.26.0 which is incompatible.这个怎么解决啊

yangw8 avatar Jul 10 '25 21:07 yangw8

Requiring Numpy 2.x for Python 3.9 makes it incompatible with older Tensorflow versions.... tensorflow-intel 2.17.1 depends on numpy<2.0.0 and >=1.23.5; python_version <= "3.11"

schm0 avatar Jul 13 '25 16:07 schm0

#1121 should fix this.

Tenzer avatar Jul 14 '25 08:07 Tenzer

So we are now 5 months on. The release candidate for numpy 2.4 has just come out, while this ticket for supporting numpy 2.3 is stil open. I have tested with numpy 2.4 just like I did with 2.3 and found 0 issues. Again, please either speed up your release cycle or relax version fixing, preferably both, it's really getting annoying now.

Houbein avatar Dec 08 '25 16:12 Houbein