Hi,
I want to use some python packages / custom code in a deployed matlab application (compiled via mcc). To avoid missing python installs on the target machine, i want to distribute a virtual envrionment with my compiled application such that my application is self-sufficient.
However, when i attempt to set my intepreter to the virtual environment and then call some py.funcname to load it, Matlab crashes completely silently with no error messages.
Note: i run this at Matlab startup. I'm using R2022a. Python = 3.9.7
I create a virtual env with cmd :
python -m venv c:/users/joee/dev/testenv
The i start matlab and run :
pyenv(Version="C:\users\joee\dev\testenv\Scripts\python", ExecutionMode="OutOfProcess");
PythonEnvironment with properties:
Executable: "C:\users\joee\dev\testenv\Scripts\python.EXE"
Library: "C:\Users\Joee\AppData\Local\Programs\Python\Python39\python39.dll"
Home: "C:\users\joee\dev\testenv"
ExecutionMode: OutOfProcess
result = py.math.sqrt(10);
What am i missing?