'Matlab System Function and Terminal Runs differently
I have a python code that I want to run in Matlab. It has an `import NumPy statement in it. The code runs without a problem in the terminal. But when I use Matlab system function It gives me the import error below.
Import error: No module named numpy
I'm using Python 3.9 on Matlab 2020b
My question is, why does the system function gives a different result than the Terminal itself?
I've tried to add the Python folder to MATLABPATH. But nothing changed.
Any suggestions?
Thanks in advance.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|