Error installing Python on Matlab
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Alessandra Cuneo
el 21 de Sept. de 2016
Respondida: Bo Li
el 22 de Sept. de 2016
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
0 comentarios
Respuesta aceptada
Bo Li
el 22 de Sept. de 2016
You are supposed to run the command from the system prompt, not MATLAB command window:
"To install the engine API, execute the following commands at the operating system prompt, where matlabroot is the path to the MATLAB folder."
Reference:
0 comentarios
Más respuestas (1)
George
el 21 de Sept. de 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.
0 comentarios
Ver también
Categorías
Más información sobre Call MATLAB from Python en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!