Unable to use PyTorch from Mojo
I just wanted to try Pytorch and created a project using nightly build.
I then installed PyTorch using: magic add "pytorch".
This is the code I tried:
It resulted in the following error:
I can see "libmkl_intel_lp64.so.2" in the .magic\envs\default\lib folder so I do not understand what the problem is.
I then installed PyTorch using: magic add "pytorch".
This is the code I tried:
from python import Python
fn main() raises:
torch = Python.import_module("torch")
x = torch.tensor([1, 2, 3])
print(x)It resulted in the following error:
Unhandled exception caught during execution: libmkl_intel_lp64.so.2: cannot open shared object file: No such file or directory
mojo: error: execution exited with a non-zero result: 1I can see "libmkl_intel_lp64.so.2" in the .magic\envs\default\lib folder so I do not understand what the problem is.
