Media Pipe Python Interfacing with MATLAB
Show older comments
Hi, so I've done some research and I've found that MATLAB can interface with Python in a pretty straightforward manner, but I'm running into an issue. For some reason, when I download Python from a browser (executable installation), MATLAB can detect it but when I try to run the setup commands for the Media Pipe program through the command prompt it says: "The system cannot find the file specified," it seems to be looking for Python 3.12 for some reason even though the only version I have installed is 3.11. Inversely, I have the opposite problem when I install the Python 3.11 from the Microsoft store, I can install the Media Pipe program but then MATLAB can't recognize it. When MATLAB can't find the version of Python, it pops up with an error message, stating: "Unable to create process using... The system cannot find the file specified." I'm stuck on where to go from here since I'm new to using Python, but have been using MATLAB for quite some time. Any advice on what to try in order to troubleshoot would be appreciated.
1 Comment
Baderr
on 9 Jun 2026 at 15:05
First, don’t mix Microsoft Store Python with the python.org installer. MATLAB often struggles with Store versions. Uninstall the Store Python and install Python 3.11 from python.org, making sure you tick “Add Python to PATH”.
Then verify in Command Prompt:
python --version
where python
Make sure it shows only one path (your 3.11 install). If it still tries 3.12, you likely have a leftover PATH entry or alias.
In MATLAB, explicitly set the correct interpreter:
pyenv('Version',"C:\Path\To\Python311\python.exe")
Accepted Answer
More Answers (0)
Categories
Find more on Call MATLAB from Python 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!