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? 

 채택된 답변

MathWorks Support Team
MathWorks Support Team 2021년 12월 6일

0 개 추천

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:

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

제품

릴리스

R2021b

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by