Reload Out-of-Process Python Interpreter

8 ビュー (過去 30 日間)
Tibor Auer
Tibor Auer 2021 年 1 月 8 日
コメント済み: Tibor Auer 2021 年 1 月 11 日
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'."

回答 (1 件)

Pranav Verma
Pranav Verma 2021 年 1 月 11 日
編集済み: Pranav Verma 2021 年 1 月 11 日
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 件のコメント
Tibor Auer
Tibor Auer 2021 年 1 月 11 日
Thank you for your suggestions. I already use newer Python version (3.7).

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeCall Python from MATLAB についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by