MATLAB py.sys.executable on Windows points to MATLAB.exe and not python.exe
이전 댓글 표시
I'm working on calling a Python library from MATLAB. The sys.executable property, which should refer to the Python executable, actually points to MATLAB.exe but only on Windows.
- Python on LInux sys.executable is a Python string /usr/XXX/bin/python, as it should be
- MATLAB in Linux: py.sys.executable is /usr/XXX/bin/python, as it should be
- Python on Windows, sys.executable is "C:\..\python.exe", as it should be
- MATLAB on Windows, py.sys.executable is "C:\...\MATLAB.exe" , wrong!
This was tested in Windows 10 with MATLAB R2022a and Python 3.9.13
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Call MATLAB from Python에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!