Matlab to Python

I need to convert one function from Matlab to Python. My Matlab version is R2022.b. Compatible Python version is 3.10. Both Matlab and Python are now installed on my PC. Python installed directly from python.org. When I run the function “pyenv” in Matlab, I receive empty fields and message “Python commands require a supported version of CPython.”

Regarding Matlab, I have: Matlab, Financial Toolbox, Optimization Toolbox, and Statistics and Machine Learning Toolbox.

Do I need to get some other toolboxes for Matlab to be able to see/work with Python?

Thank you.

Stefan

You’ll have to ask Matlab experts to find out what Matlab needs.

I imagine the problem is that your Python is installed somewhere that Matlab can’t find it. But what do I know? I’ve never used Matlab in my life.