Reputation: 4741
I have a standalone matlab exe which I can run on my laptop with the matlab runtime. I can run it from python and get the output with subprocess.check_output
. Everything works fine!
The problem is that I need to run the python script inside a conda environment. I have the following error:
how can I make it accessible from the conda environment?
Upvotes: 3
Views: 644
Reputation: 4741
I've solved my problem by adding the runtime in the PATH.
import os
os.environ['PATH'] = "C:\\Program Files\\MATLAB\\MATLAB Runtime\\v91\\;C:\\Program Files\\MATLAB\\MATLAB Runtime\\v91\\bin;"+os.environ['PATH']
Upvotes: 4