MATLAB y Python, empieza a usarlos juntos

1 view (last 30 days)
Estoy empezando a usar MATLAB y Python juntos, pero tengo un problema al momento de instalar e importar ciertas librerias para que se ejecuten varios entornos, dandome como respuesta acceso denegado, a alguien mas le ha ocurrido este inconveniente y si es posible me pueda faciliat cual fue la solucion que le resulto conveniente, el video del cual me estoy guiando es este: https://la.mathworks.com/videos/matlab-and-python-how-to-start-using-them-together-1649351332170.html?s_v1=41840&elqem=3669650_EM_LA_LWB_22-03_MATLAB-AND-PYTHON-PART-1_POST_CERT&elqTrackId=3148e61690144856b0b3f2a38a3e7d0a&elq=3a65788387594192b3b678f9ce39aa93&elqaid=41840&elqat=1&elqCampaignId=15420 , muchas gracias por sus respuestas.

Answers (1)

Shivang
Shivang on 23 Oct 2023
Hi Alfredo,
Estaré respondiendo tu pregunta en inglés.
I understand that you are getting an "access denied" error while trying to use MATLAB and Python together.
Based on the error message, and the contents of the video you referred to, I suspect you encountered this error while trying to install the MATLAB Engine API for Python using the "setup.py" Python script.
You must open the command prompt with the "Run as administrator" option, when entering the commands to install the MATLAB Engine API. Not doing so throws up the "Access is denied" error, which is what you encountered.
Additionally, there is an alternate way to install the MATLAB Engine API for Python, using the 'pip' package manager. Refer to the documentation for more details: https://www.mathworks.com/help/matlab/matlab_external/install-the-matlab-engine-for-python.html
Hope this helps.
Regards,
Shivang.

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!