I install matlab.engine on python3.7 (Ubuntu) as explained in the matlab site:
cd "matlabroot/extern/engines/python"
python setup.py install
But when I try to use in Pycharm as:
import matlab.engine
eng = matlab.start_matlab()
tf = eng.isprime(37)
print(tf)
Come the error "No module named 'matlab.engine'; 'matlab' is not a package" I have a lot of matlab function that are not so easy to translate to python. If I could just open then in python3.7 via Pycharm could be much mode easy.
Please check if your version of MATLAB supports python 3.7.
Here is a link to a list for which python version is supported by which MATLAB version.
According to the document, for you to run the matlab engine in python 3.7 your version of MATLAB must be R2019a or higher