There is no need for uninstalling the MATLAB Engine previously installed for a different MATLAB release. In fact, if you install the latest release of MATLAB, which is R2018a, you can reinstall the MATLAB Engine API for Python following the instructions below from the MATLAB Documentation:
or
After you installed the latest MATLAB Engine API for Python, please close your Python instances and open it again.
You can now import the MATLAB engine and start it through the following commands:
>>> import matlab.engine
>>> eng = matlab.engine.start_matlab()
If you open the Windows Task Manager, you will see that the MATLAB version called by Python is the latest one.
Please note that the same workflow works fine also if you want to install the MATLAB Engine related to a previous MATLAB release.
Best Answer