Matlab 2019a Ubuntu 20 Python 3.7.12 "Path argument does not specify a valid executable"

2 ビュー (過去 30 日間)
Kasjan Nowacki
Kasjan Nowacki 2022 年 2 月 23 日
コメント済み: Kasjan Nowacki 2022 年 4 月 21 日
Hello,
we're trying to use Python 3.7.12 on a Matlab Docker 2019a Image on a Ubuntu v20 installation. On the windows counterpart this works fine setting it up via "pyversion($PATH_TO_PYTHON_ON_C)". However unfortunately on Ubuntu this fails with 3.7.12, whereas it's working with 3.8 (but it fails to run it, since it's incompatible with 2019a, goes only up to 3.7) saying "Path argument does not specify a valid executable"
Please see the screenshot for the detailed error message, Python 3.7.12 is definetly there and can be started.
Thanks for your answers!

回答 (1 件)

Al Danial
Al Danial 2022 年 4 月 21 日
Does the command pyenv work in 2019a? If yes, what output does it show? 2020b uses pyenv to show what MATLAB thinks the Python exe is, and if it isn't found pyenv can be used to set it.
  2 件のコメント
Kasjan Nowacki
Kasjan Nowacki 2022 年 4 月 21 日
Hello and thanks for your answer, "pyenv" doesn't work in 2019a, the corresponding command is "pyversion". I can't really say what it says from the GUI, since we're starting Matlab 2019a inside a docker and then passing the pyversion($dir) as a parameter inside the command line.
For 3.7.12 when also displaying it from the commandline after setting it, Matlab just returns "Error using pyversion. Path argument does not specify a valid executable"
Kasjan Nowacki
Kasjan Nowacki 2022 年 4 月 21 日
Ok we investigated deeper, seems the source of where we took the python 3.7.12 package from was in library type, not binary... that's why Matlab throws this errors, since it awaits binary files

サインインしてコメントする。

カテゴリ

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

タグ

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by