フィルターのクリア

Installing MATLAB Engine API for Python

8 ビュー (過去 30 日間)
Makis
Makis 2021 年 7 月 1 日
回答済み: Yongjian Feng 2021 年 7 月 1 日
Hi all
I have MATLAB 2019b installed and I would like to install the MATLAB Engine API for Python. I have a macbook.
I do:
cd /Applications/MATLAB_R2019b.app/extern/engines/python/
python3 setup.py install
and I get this error:
Traceback (most recent call last):
File "setup.py", line 15, in <module>
raise EnvironmentError('MATLAB Engine for Python supports Python version'
OSError: MATLAB Engine for Python supports Python version 2.7, 3.6, and 3.7, but your version of Python is 3.8
Any tip?

回答 (1 件)

Yongjian Feng
Yongjian Feng 2021 年 7 月 1 日
Hello Makis,
The error message suggests that the verions of MATLAB Engine is not compatible with the local python on you macbook.
Try to downgrade your local python to 3.7.
Thanks,
Yongjian

カテゴリ

Help Center および File ExchangeCall Python from MATLAB についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by