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

5 vues (au cours des 30 derniers jours)
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 commentaire
iSinnerman
iSinnerman le 4 Déc 2019
Solved by reinstalling Python with custom options to ensure environment variables in windows were set.

Connectez-vous pour commenter.

Réponse acceptée

Can Wu
Can Wu le 5 Déc 2019
I'm having the same issue. Would you mind elaborating what you have done to solve the problem?
Thanks!
Kevin
  2 commentaires
Can Wu
Can Wu le 5 Déc 2019
Solved. Just need to add Python to environment variables.
Mohamed Abdelaziz
Mohamed Abdelaziz le 15 Avr 2020
I think it can be solved by running matlab as adminstrator.

Connectez-vous pour commenter.

Plus de réponses (1)

iSinnerman
iSinnerman le 7 Déc 2019
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 commentaire
Can Wu
Can Wu le 7 Déc 2019
Thanks for your reply. To use the right version is critical indeed...

Connectez-vous pour commenter.

Catégories

En savoir plus sur Call Python from MATLAB dans Help Center et File Exchange

Tags

Produits


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by