Installaton error when installing the Matlab API engine for python on windows.

I am trying to install the Matlab API engine for python. Unfortunately I get an error with this command in the Matlab command window: system('python setup.py install') The error is:
Python was not found but can be installed from the Microsoft Store: https://go.microsoft.com/fwlink?linkID=2082640
ans =
9009

1 件のコメント

iSinnerman
iSinnerman 2019 年 12 月 4 日
Solved by reinstalling Python with custom options to ensure environment variables in windows were set.

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

 採用された回答

Can Wu
Can Wu 2019 年 12 月 5 日

0 投票

I'm having the same issue. Would you mind elaborating what you have done to solve the problem?
Thanks!
Kevin

2 件のコメント

Can Wu
Can Wu 2019 年 12 月 5 日
Solved. Just need to add Python to environment variables.
Mohamed Abdelaziz
Mohamed Abdelaziz 2020 年 4 月 15 日
I think it can be solved by running matlab as adminstrator.

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

その他の回答 (1 件)

iSinnerman
iSinnerman 2019 年 12 月 7 日

0 投票

Please see my answer to another post on installing the Matlab API engine. I've found by using Python 3.6, the install worked as per the instructions. I haven't got this working with Python 3.7. I had to uninstall Python 3.7 and install Python 3.6 (64 bit as the Matlab install is also 64 bit).

1 件のコメント

Can Wu
Can Wu 2019 年 12 月 7 日
Thanks for your reply. To use the right version is critical indeed...

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

カテゴリ

ヘルプ センター および File Exchange で Python Package Integration についてさらに検索

製品

リリース

R2019b

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by