I want to call a python script, which uses the pytorch module, in matlab script, but then it occures error:
Traceback (most recent call last):
File "/home/usrs/xxxxx/xxxxxx/test.py", line 9, in <module>
ModuleNotFoundError: No module named 'torch'
I have checked pyversion and pyenv and I can use other module (e.g. numpy), but I can't clear this error.
I know I can use pytorch model in MATLAB by converting from pytorch model to ONNX model.
However, I want to run this python script because it's easier than converting.
In addition, I checked this answer, but I can't understand well. So I hope help.
Thank you so much!