matlab can't call matplotlib

17 Ansichten (letzte 30 Tage)
jun li
jun li am 1 Apr. 2021
Kommentiert: jun li am 1 Apr. 2021
matlab can call python funtion now.
but when I call matplotlib ,matlab crash

Akzeptierte Antwort

Mohammad Sami
Mohammad Sami am 1 Apr. 2021
Bearbeitet: Mohammad Sami am 1 Apr. 2021
Based on this Answer from Matlab staff :
Anaconda python is not supported. You have to use the supported python implementation and ensure any necessary packages.
The python version supported also differs based on the Matlab release you are using. Check your release documentation for the version number supported.
  4 Kommentare
Mohammad Sami
Mohammad Sami am 1 Apr. 2021
The following post is also about TCL error. The cause was wrong version of TCL library. I am not sure what is the correct version for you. https://www.mathworks.com/matlabcentral/answers/525545-calling-python-function-from-matlab-when-using-python-tkinter-results-in-tclerror-can-t-find-a-usa
jun li
jun li am 1 Apr. 2021
Yes when I load python as out of process ,I get the same error.Thank you very much for your answer. In fact, I also saw this message about TCL error, but I didn't quite understand what he meant at the time. After your confirmation, I can check this question again

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Call Python from MATLAB finden Sie in Help Center und File Exchange

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by