-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Numpy 2.0 binary incompatibility #10
Comments
Hi Hannah, thanks for drawing my attention to this. It's quite a tricky topic, because a lot of other packages (e.g. scipy) depend on specific numpy versions, so support should be carefully considered. There is a comment about this buried deep in the commit history (496fc98) saying
I will be more explicit about this in the readme, but the unfortunate truth is that because we need to compile and link to a specific numpy version, there will never be wide support across many numpy versions for the releases on PyPI as long as numpy introduces breaking changes (which can be as little as modifying the size of the header of a data structure). I will consider moving to numpy 2.0 soon though. Hope this helps. Cheers! |
Hi, I had the same issue installing from pypi, where numpy>=1.20 is specified but it seems 2.0.0 (latest, installed on my system) is incompatible. My workaround was setting up a virtual env and installing an older numpy version on this (but newer than 1.20), and then running pip install pyquest. I have checked and this works right up to numpy 1.26.4 (newest before 2.0.0). Hope this is helpful! |
The dependency specified for numpy is
>=1.20
, but the pyquest wheels released onpypi.org
are not compatible with numpy2.0
, which is an ABI-breaking release.See numpy's advice for building compatible wheels: https://numpy.org/doc/stable/dev/depending_on_numpy.html#numpy-2-abi-handling.
It would be great to have pyquest wheels that are compatible with numpy ^2.0. Note that Numpy 2.0 drops support for Python 3.8. Python 3.8 is due to be end-of-lifed later this year, but if you wanted to keep supporting it then I think you could build your Python 3.8 wheels with 1.x numpy.
The text was updated successfully, but these errors were encountered: