Python

Python interface supports Python 2.7 and 3.5 or newer.

Anaconda

conda install -c oxfordcontrol osqp

Pip

pip install osqp

Sources

You need to install the following (see Build from sources for more details):

Note

Windows: You need to install also the Visual Studio C++ compiler:

Now you are ready to build OSQP python interface from sources. Run the following in your terminal

git clone https://github.com/oxfordcontrol/osqp
cd osqp/interfaces/python
python setup.py install