The Library Compiler app generates an installer that installs
the MATLAB® Runtime and the files required to install the generated Python® package.
The app places the installer in the for_redistribution
folder.
Copy the installer from the for_redistribution
folder
to the desired location.
Run the installer.
Note where the installer writes the Python package files.
When the installer finishes, open a command terminal in the folder containing the Python package files.
Run the Python setup script. To install to a location other than the default, consult "Installing Python Modules" in the official Python documentation.
python setup.py install
Set the required environment variables.
On Linux®:
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:mcrroot/runtime/glnxa64: mcrroot/bin/glnxa64:mcrroot/sys/os/glnxa64: mcrroot/sys/opengl/lib/glnxa64 setenv XAPPLRESDIR mcrroot/v90/X11/app-defaults
On OS X:
setenv DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH}:mcrroot/runtime/maci64: mcrroot/sys/os/maci64:mcrroot/bin/maci64
If LD_LIBRARY_PATH
is not defined on Linux,
remove ${LD_LIBRARY_PATH}:
from the code to set
the environment variables. Similarly, on OS X, remove ${DYLD_LIBRARY_PATH}:
if DYLD_LIBRARY_PATH
is
not defined.
mcrroot
is the full path to the MATLAB Runtime installation.
A command must be entered as a single line without white space between path components. Commands are wrapped here for readability.
If you already have the MATLAB Runtime installed, you can install the Python package.
Copy the contents of the for_redistribution_files_only
folder
to the desired location.
Open a command terminal in the folder containing the Python package files.
Run the Python setup script. To install to a location other than the default, consult "Installing Python Modules" in the official Python documentation.
python setup.py install
Set the required environment variables.
On Linux:
setenv LD_LIBRARY_PATH $LD_LIBRARY_PATH:mcrroot/runtime/glnxa64: mcrroot/bin/glnxa64:mcrroot/sys/os/glnxa64: mcrroot/sys/opengl/lib/glnxa64 setenv XAPPLRESDIR mcrroot/v90/X11/app-defaults
On OS X:
setenv DYLD_LIBRARY_PATH $DYLD_LIBRARY_PATH:mcrroot/runtime/maci64: mcrroot/sys/os/maci64:mcrroot/bin/maci64
mcrroot
is the full path to the MATLAB Runtime installation.
A command must be entered as a single line without white space between path components. Commands are wrapped here for readability.