MATLAB Answers

0

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

Asked by iSinnerman on 4 Dec 2019 at 5:54
Latest activity Commented on by Can Wu
about 11 hours ago
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 Comment

Solved by reinstalling Python with custom options to ensure environment variables in windows were set.

Sign in to comment.

Tags

Products


Release

R2019b

2 Answers

Answer by Can Wu
on 5 Dec 2019 at 1:27
 Accepted Answer

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

  1 Comment

Solved. Just need to add Python to environment variables.

Sign in to comment.


Answer by iSinnerman about 18 hours ago

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 Comment

Thanks for your reply. To use the right version is critical indeed...

Sign in to comment.