Why Matlab does not see Python?
99 views (last 30 days)
Show older comments
Sergii Snegir on 20 Feb 2022
Commented: Yongjian Feng on 24 Feb 2022
I am trying to luch the python file using the pyrunfile, but got an error.
Verificatio of the python version all shows me the answer (see below), nevertheless that in comandn line i see Version 3.8.3:
What is the problem?
Thanks in advance
Yongjian Feng on 23 Feb 2022
matlab uses PATH env var to find python. Your python installation is in a local path. Try this in matlab command line:
If the path to your python is not there, then set the PATH env var in matlab command line
Yongjian Feng on 24 Feb 2022
Sean suggested that you might need to check if you have installed a 32bit python. Start python from Windows command line like this. Your path shown above really looks like a 32bit. If so, you need to install a 64bit python to make it work.
Abdurrahman Dayi on 23 Feb 2022
It might be the case that you are using a Matlab version that does not support python 3.8.
Kindly double check the supported python versions for your matlab version here: https://www.mathworks.com/content/dam/mathworks/mathworks-dot-com/support/sysreq/files/python-compatibility.pdf
Sean de Wolski on 23 Feb 2022
Looks like you have 32-bit python. You need 64-bit Python.
Find more on Call Python from MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!