Sign inSign up

spectreteam/python_mcr

By spectreteam

•Updated over 5 years ago

MATLAB Common Runtime environment on Python 3.5 slim image.

Image
1

726

spectreteam/python_mcr repository overview

Backed up on GitHub⁠.

IMPORTANT NOTICE

To be able to use MCR-based packages, it is necessary to overwrite LD_LIBRARY_PATH environmental variable. Without it, MCR won't start. It is not done globally (as suggested on MathWorks webpage) due to problems with PIP and Python.

It can be done as follows:

import os
old_env = os.environ['LD_LIBRARY_PATH'] = os.environ['LD_LIBRARY_PATH'] + \
    "/usr/local/MATLAB/MATLAB_Runtime/v96/runtime/glnxa64:" + \
    "/usr/local/MATLAB/MATLAB_Runtime/v96/bin/glnxa64:" + \
    "/usr/local/MATLAB/MATLAB_Runtime/v96/sys/os/glnxa64:" + \
    "/usr/local/MATLAB/MATLAB_Runtime/v96/extern/bin/glnxa64:"
from MatlabAlgorithms import MsiAlgorithms
algs = MsiAlgorithms.initialize()
os.environ['LD_LIBRARY_PATH'] = old_env

Tag summary

Content type

Image

Digest

Size

1.9 GB

Last updated

over 5 years ago

docker pull spectreteam/python_mcr:r2019a_p37