Check current installation
MATLAB:
>> pyenv
ans =
PythonEnvironment with properties:
Version: "3.7"
Executable: "C:\Users\Paul\AppData\Local\Programs\Python\Python37\python.EXE"
Library: "C:\Users\Paul\AppData\Local\Programs\Python\Python37\python37.dll"
Home: "C:\Users\Paul\AppData\Local\Programs\Python\Python37"
Status: NotLoaded
ExecutionMode: InProcess
OR
>> pyenv
ans =
PythonEnvironment with properties:
Version: ""
Executable: ""
Library: ""
Home: ""
Status: NotLoaded
ExecutionMode: InProcess
Select supported version
See current MATLAB documentation
Install or update
Got to python.org, downloads, and select a supported version (probably not the latest).
Grab the Windows 64-bit install download, and run
Check the “Add to path” option and install
If updating, remove old version
Configure Python
Check installation:
Open a Command Prompt
py --version
py -m pip --version