Error installing Python on Matlab
Afficher commentaires plus anciens
Hi
I'm trying to install python on Matlab2014b to call some Matlab script from Python. I add the Python path in Matlab and write the following command:
cd "matlabroot\extern\engines\python"
python setup.py install
(where matlabroot is the path where Matlab is installed) but I get the following error:
"Undefined function 'python' for input arguments of type 'char'"
I controlled and in the current folder the file"setup.py" exists. Where I am wrong?
thanks
Réponse acceptée
Plus de réponses (1)
George
le 21 Sep 2016
Assuming that you're trying to execute the python command this won't work:
cd "matlabroot\extern\engines\python"
python setup.py install
because it's trying to interpret the python "word" as a valid MATLAB function or variable.
Catégories
En savoir plus sur Call MATLAB from Python dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!