pascalpolygon
pascalpolygon
MModular
Created by pascalpolygon on 3/13/2024 in #questions
Numpy: Import from source dir error
Awesome, thanks!
5 replies
MModular
Created by pascalpolygon on 3/13/2024 in #questions
Numpy: Import from source dir error
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 ?
['', '/Users/pascaldao/.pyenv/versions/3.10.0/lib/python310.zip', '/Users/pascaldao/.pyenv/versions/3.10.0/lib/python3.10', '/Users/pascaldao/.pyenv/versions/3.10.0/lib/python3.10/lib-dynload', '/Users/pascaldao/.pyenv/versions/3.10.0/lib/python3.10/site-packages']
['', '/Users/pascaldao/.pyenv/versions/3.10.0/lib/python310.zip', '/Users/pascaldao/.pyenv/versions/3.10.0/lib/python3.10', '/Users/pascaldao/.pyenv/versions/3.10.0/lib/python3.10/lib-dynload', '/Users/pascaldao/.pyenv/versions/3.10.0/lib/python3.10/site-packages']
I also tried this:
fn main() raises:
var sys = Python.import_module("sys")
_ = sys.path.append("/Users/pascaldao/.pyenv/versions/3.10.0/lib/python3.10/site-packages/numpy")
var np = Python.import_module("numpy")
fn main() raises:
var sys = Python.import_module("sys")
_ = sys.path.append("/Users/pascaldao/.pyenv/versions/3.10.0/lib/python3.10/site-packages/numpy")
var np = Python.import_module("numpy")
But I get the same error.
5 replies
MModular
Created by pascalpolygon on 2/29/2024 in #questions
Invalid Parameter to Vectorize from example
Yeah I saw the email right after the post haha. Awesome, thanks
4 replies