0

I'm trying to import matlab.engine in python. I've done it with Python shell and it works fine but when I do it in Pycharm it returns "ModuleNotFoundError: No module named 'matlab'".

I've tried searching elsewhere on the internet but couldn't solve my problem. I also saw a lot of forum questions redirecting to ImportError: No module named matlab.engine. How to import matlab.engine in Pycharm?

but I can't follow some of those steps like "go to File--> Settings --> Gear --> More --> Show all --> Show paths to the selected interpreter" maybe since my version of Pycharm is more recent and this has changed?

Also for the step: "Then open cmd running as administrator and go to your root MATLAB installation directory and find such directory:

cd C:\Program Files\MATLAB\R2018a\extern\engines\python\build\lib 

Then type :

python setup.py install

."

I get the error: "Python is not found. Run without arguments to proceed"

Thanks for your help I'm completely lost. Also I'd like to state I've used Pycharm some years ago but it seems I'm quite rusted

1 Answers1

0

Ok so the solution that worked for me here is to go to "Python Packages" tab in Pycharm, type in "matlabengine" and simply install it. Really type matlabengine and not matlab.engine otherwise it doesn't find it