Tony Tannous Tony Tannous - 5 months ago 30
Python Question

How to set python version on windows platform for matlab?

From MathWork documentation I've found this: Set Python Version
However I am not sure what to type in the command line on Matlab. I have python version 2.7

Should the command be

pyversion 2.7

How do I test it ? to check if it worked ?


according to docs in your answer

To set the version, type:

pyversion executable

where executable is the full path to the Python executable file.

to check version docs Display Python Version for Your System

       version: '2.7'
    executable: 'C:\Python27\python.exe'
       library: 'C:\windows\system32\python27.dll'
          home: 'C:\Python27'
      isloaded: 0