How can I call 'mwpython' from my preferred Python IDE?

I am attempting to call a Python package that was compiled in MATLAB using Compiler SDK. I want to call this from my preferred IDE. However, I am on MacOS, so I need to run "mwpython" before I can load this package. How can I call this from my Python IDE?

 采纳的回答

"mwpython" is a bash script located at ‘matlabroot/bin/mwpython’. This script sets up the environment for the MCR and launches the default Python configured on your system.
You can execute "mwpython" from your preferred IDE by creating a wrapper script in Python. This script can use a system command to execute the "mwpython" bash script, which can then call your main Python script. 

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Call Python from MATLAB 的更多信息

产品

版本

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by