-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
BUG: Can't install universal2 version of numpy #21233
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
Comments
There are no universal2 wheels for NumPy 1.22+, 1.21 was the last version that had them. However there are wheels for both x86_64 and arm separately. Just install using the python you intend to use if you want the latest version. |
@charris - I guess I need to elaborate. Our product embeds a Python installation with numpy included. M1 flavor is being cross-compiled from an x86_64 CI node. |
See #20787 for discussion of that topic. |
I went through #20787 and while it's related, I don't think there's a conclusive answer to question: how to generate an M1 python+numpy package, when cross-compiling from x86_64. I guess if we step back from the "universal2" flavor of question, it'd be how to deploy an arm64 wheel into a universal Python install structure, when running on x86_64? |
This seems more a question for Pip or for Stack Overflow. We have the correct wheels on PyPI, but off the top of my head I don't know if or how it's possible to force Pip (or |
This is an almost duplicate of #18143. I think the discussion there covers the questions here, and will close this. Please reopen if I missed the point. |
To summarize the main point, here is how to create a
|
Uh oh!
There was an error while loading. Please reload this page.
Describe the issue:
Release notes document MD5 checksums for universal2 wheels. However, I can't seem to find one.
Any attempt to
python3 -m pip install numpy --target foo --platform=universal2
results in building from source (asks to add--no-deps
), which subsequently fails.What would be the best way to install universal2 (e.g. arm64+x86_64) distribution of numpy?
Reproduce the code example:
Error message:
Full error: https://gist.github.com/w3sip/a99d0febfd44e7e991b6d32117ba3291
NumPy/Python version information:
The text was updated successfully, but these errors were encountered: