Filter löschen
Filter löschen

Reload Out-of-Process Python Interpreter

3 Ansichten (letzte 30 Tage)
Tibor Auer
Tibor Auer am 8 Jan. 2021
Kommentiert: Tibor Auer am 11 Jan. 2021
I would like to dynanically change the Python Interpreter used in MATLAB.
According to this help, termination and re-specificition should work for Out-of-Process Python Interpreter. However, I receive a follwoing error message:
"Python is terminated. The environment cannot be changed in this MATLAB session. To change the environment, restart MATLAB, and then call 'pyenv'."

Antworten (1)

Pranav Verma
Pranav Verma am 11 Jan. 2021
Bearbeitet: Pranav Verma am 11 Jan. 2021
Hi Tibor,
From the problem you have specified, I assume that you have followed the below steps mentioned in the documentation for reloading the interpreter:
terminate(pyenv)
pyenv("Version","2.7");
py.list; % Reload interpreter
pyenv
You can try with newer version of Python and see if it resolves the issue.
Thanks
  1 Kommentar
Tibor Auer
Tibor Auer am 11 Jan. 2021
Thank you for your suggestions. I already use newer Python version (3.7).

Melden Sie sich an, um zu kommentieren.

Kategorien

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

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by