Calling Python functions whose libraries conflict with MATLAB

I am trying to call Python functions I've written from within MATLAB. The Python functions utilize a few libraries (which I have set up in my environment) that conflict with libraries that are shipped with MATLAB, such as the "HDF5" library ("libHDF5.so" on Linux). The version in my environment is newer than the version that is shipped with MATLAB. Is there a way to have MATLAB use these newer libraries, or some other way to ensure the Python functions utilize the newer versions of the libraries? 

 Accepted Answer

To resolve the library conflict, you can execute Python functions from within MATLAB out-of-process, which enables Python to use libraries that aren't compatible with MATLAB. Please refer to the resource below to get started:

More Answers (0)

Products

Release

R2021b

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!