필터 지우기
필터 지우기

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 CenterFile Exchange에서 Call 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