フィルターのクリア

Error installing MATLAB engine for Python

26 ビュー (過去 30 日間)
Vineet Jagadeesan Nair
Vineet Jagadeesan Nair 2022 年 5 月 31 日
回答済み: Biral Pradhan 2022 年 6 月 3 日
I was using MATLAB R2021b engine for Python 3.9 on macOS Monterey 12.4 and everything was working fine.
However, I recently upgraded to MATLAB R2022a and now I am unable to install the MATLAB engine for Python properly.
But when I try to do the following step:
cd (fullfile(matlabroot,'extern','engines','python'))
system('python setup.py install')
I get the error
zsh:1: command not found: python
ans =
127
What does this mean? How can I resolve it? I didn't run into this issue while using previous versions of MATLAB.

回答 (1 件)

Biral Pradhan
Biral Pradhan 2022 年 6 月 3 日
I understand, you are using MATLAB R2022a and are facing "command not found: python" while trying to install MATLAB Engine API for Python. This error usually happens if your system does not have a supported version of Python for R2022a, or if the Python interpreter folder is not added to path.
Kindly follow the steps under "Verify Your Configuration" in the below link, before proceeding with the installation.

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by