Installing MOSEK on Code Ocean

in Python, MATLAB, and R.

Shahar Zaks avatar
Written by Shahar Zaks
Updated over a week ago

MOSEK is a large scale optimization software that solves "linear, quadratic, general convex and mixed integer optimization problems. To get it running on Code Ocean install MOSEK for your chosen programming language using the package management system.


To install MOSEK, first add the mosek channel to the conda installer (see how), then add mosek as a conda dependency.


Install Mosek.jl by adding Mosek as a Julia dependency.


Install Rmosek by adding it as a CRAN dependency.


install bzip2  via apt-get and then paste the following snippet into your postInstall script.


curl -L | tar xj

matlab -nodisplay -r 'addpath /mosek/8/toolbox/r2014a; savepath;'

Example capsule with MOSEK installed:

For installation details:

Click the Environment tab > View Post-Install Script

Did this answer your question?