Numpy: Import from source dir error
I am trying to import Numpy in my mojo project using
But I get the following Error:
4 Replies
What mojo version are you using? Please make sure that numpy is visible and is in Python path which you can investigate using
sys.path
Hi Ehsan, thanks for the reply!
I am using mojo 24.1.0 on Mac
Here is my sys.path. I see site-packages so shouldn't it have access to numpy ?
I also tried this:
But I get the same error.
Thanks! This can be fixed by using conda for example like https://github.com/modularml/mojo/issues/1085#issuecomment-1771403719
GitHub
[BUG]: Importing the numpy C-extensions failed. · Issue #1085 · mod...
Bug description Running the command mojo matmul.mojo results in the following error output: $ mojo matmul.mojo Unhandled exception caught during execution: IMPORTANT: PLEASE READ THIS FOR ADVICE ON...
Awesome, thanks!