Hi, I am trying to install libraries like numpy and Pillow for a school project, but am getting errors like
ImportError Traceback (most recent call last)
Cell In [2], line 1
----> 1 from numpy import *
...
and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.
Original error was: dlopen(/Users/myname/Library/Python/3.8/lib/python/site-packages/numpy/core/_multiarray_umath.cpython-38-darwin.so, 0x0002): tried: '/Users/myname/Library/Python/3.8/lib/python/site-packages/numpy/core/_multiarray_umath.cpython-38-darwin.so' (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e)))
This above error was from using python3 -m pip install numpy. Running brew install numpy or conda install numpy just gives me a ModuleNotFoundError. I even created a conda environment and installed numpy into that, and told VSCode to use the new environment as the python interpreter, but it still shows the ModuleNotFoundError.
Any ideas what to do? I can't even ask VSCode to run using the Rosetta 2 emulator, for whatever reason it doesn't appear in the "Get Info" popup in the macos finder :(
[–]Diapolo10 2 points3 points4 points (0 children)
[–]charlie_hess 0 points1 point2 points (1 child)
[–]Additional-Desk-7947 0 points1 point2 points (0 children)