when I try to install the Matlab Engine in Python I receive the following error:
OSError: Please reinstall MATLAB Engine for Python or contact MathWorks Technical Support for assistance: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /usr/local/MATLAB/R2018a/extern/engines/python/dist/matlab/engine/glnxa64/../../../../../../../bin/glnxa64/libmwengine_api.so
I first tried to isntall it, as it is recommended on the MathWorks Website: https://de.mathworks.com/help/matlab/matlab_external/install-the-matlab-engine-for-python.html
Then I also tried to use instad of
python setup.py build --build-base=$(mktemp -d) install
Which also result in the same error message when I want to run the code. I use Python 3.5.2 and MATLAB R2018a with Ubuntu 16.04.
Does someone has an idea how to solve it?
Thank you very much in advance!