-
Notifications
You must be signed in to change notification settings - Fork 333
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
import error for numpy on Apple M1 with python 3.8 #2147
Comments
I wonder how hydrogen set the env for arch by default |
hydrogen default runs on
if I import numpy on terminal that runs arch |
|
Hello! When I run the Numpy also runs from the terminal. This is a list of the packages that
The error I get is:
Again, seems to be something to do with the architecture
Except that in VSCode it also seems to be pointing to the Python inside my /Library as shown below:
Any help on solving this would be greatly appreciated! |
it's a bug with hydrogen/atom apparently. |
Thanks for responding! :) Can confirm it works perfectly with Python 3.9.2 |
Description
On Apple M1, the default architecture is arm64, and import works ok on Terminal with python 3.8. But when I import NumPy on Hydrogen, it returns the following error.
This error can be reproduce if I set the
arch == x86
in the Terminal and import numpy in terminal.If I downgrade the python3.8 to python3.7, this error goes off, because python 3.7 defaults uses x86 compiled packages. The easiest way to fix this error in Hydrogen is to set the arch env to 'arm64'. I try to look into the hydrogen code and env and can't find a way to set the default arch in Hydrogen to 'arm64'. I wonder how this bug can be fixed.
The text was updated successfully, but these errors were encountered: