'python' is not recognized as an internal or external command, operable program or batch file.

9 ビュー (過去 30 日間)
ABHAY K K
ABHAY K K 2019 年 4 月 30 日
回答済み: Walter Roberson 2019 年 5 月 1 日
Hi everyone,
I am getting the above problem when I am running the python scripts in matlab. I have referred some of the previous asked questions on the above topic, however none of it actually worked for me. I tried using system('python program_name.py'), also tried with the inbuilt program converting perl.m to python.m by replacing the the keyword perl to python yet got no results. So, I request you to help me out with this issue.
Thanks in advance
  2 件のコメント
Walter Roberson
Walter Roberson 2019 年 4 月 30 日
Which MATLAB release are you using, and which operating system?
ABHAY K K
ABHAY K K 2019 年 5 月 1 日
Hi Walter Roberson, i am using Window 8.1 and Matlab 2018a version.

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

回答 (1 件)

Walter Roberson
Walter Roberson 2019 年 5 月 1 日
You would not use python as the command; you would create objects from the py package.
You might need to install Python since you are using windows; see https://www.mathworks.com/help/matlab/matlab_external/call-python-from-matlab.html

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by