Python environment information
PythonEnvironment
objects contain information about the settings
and status of the Python® interpreter. MATLAB® communicates with the interpreter when you call a py.
command. Python environment information is persistent across different MATLAB sessions.
To create a PythonEnvironment
object or change the settings, call pyenv
. The
Python interpreter is loaded when you call a Python command in the py
package. You cannot change the interpreter
after MATLAB loads Python. To change the interpreter, restart MATLAB, and then call pyenv
.
terminate | Terminate process associated with Python interpreter |
Saving (serializing) PythonEnvironment
objects into a MAT-file is not
supported.