How do I properly install Matlab Engine using the anaconda package manager for Python?

0 views
Skip to first unread message

sandip...@gmail.com

unread,
Jun 23, 2017, 6:53:18 PM6/23/17
to Anaconda - Public

At the moment, I'm running Python 3.5 and Matlab R2015a on a 64-bit Windows 10 laptop. I'm using Anaconda as my Python package manager and want to run some Matlab scripts from Python using . I've used the classic Anaconda command to install Matlab engine:

conda install matlab_engine 

However, even after Matlab engine has supposedly been installed, I get an error message whenever I type in the following command to Python.

import matlab.engine 

The error just reads "no module called matlab". I'm really unsure of what to do. Am I doing something blatantly incorrect or is there another way I can install Matlab engine.

Thank you for your help.

Will Warner

unread,
Jun 26, 2017, 7:58:12 PM6/26/17
to Anaconda - Public, sandip...@gmail.com
I did find this MathWorks page on installing matlab_engine, although it doesn't use Anaconda: https://www.mathworks.com/help/matlab/matlab_external/install-the-matlab-engine-for-python.html

I'm not seeing matlab_engine in the default conda channels or on conda-forge, so "conda install matlab_engine" didn't work for me. I got a "PackageNotFoundError" instead.

I'm curious what output you get if you create a new temporary environment with matlab_engine installed. What do you see if you run this command?

conda install -n tmp matlab_engine
Reply all
Reply to author
Forward
0 new messages