CVXPY installation instructions for non standard platforms

Clemens edited this page Sep 6, 2016 · 4 revisions

These instructions are only for non-standard platforms! See for the main instructions.

Ubuntu 12.04

The SciPy available through apt-get is out of date on Ubuntu 12.04. Follow these instructions to install CVXPY:

  1. Install Anaconda. Follow the instructions on the web page.
  2. Create a new conda environment for CVXPY.
conda create -n cvxpy-env python=2.7 numpy=1.8 scipy=0.14 cvxopt pip nose
  1. Switch into the new conda environment.
source activate cvxpy-env
  1. Install ATLAS and gfortran (needed for SCS).
sudo apt-get install libatlas-base-dev gfortran
  1. Export the location of the ATLAS library so SCS can find it.
export ATLAS="/usr/lib/atlas-base/"
  1. Install CVXPY.
pip install cvxpy


As of 2014-05-14 the debian wheezy repositories do not meet the minimum cvxpy requirements. If on jessie or sid, the installation is the same as above.



  pip install cvxpy

will download and install appropriate solvers and finish the installation. If you do not have / want root access, you can issue

  pip install --user cvxpy

in the user's temrinal.


64 bit

  1. Install Python(x,y) - This will take care of just about ALL the standard dependencies, painlessly. I personally uninstalled my python 2.7 releases that existed beforehand, removed the directory (by renaming it) to get rid of any libs, removed any other python versions from the PATH environment variable, and then installed Python(x,y).

  2. Install ECOS (requires the steps outlined in

pip install ecos
  1. Install cvxpy.
pip install cvxpy

32 bit

  1. Install the 32bit version of Anaconda:
  2. Install cvxopt using: (This is a 32bit version)
  3. Add "C:\Anaconda\MinGW\bin" to your path
  4. Install ecos with pip.
pip install ecos
  1. Install cvxpy with pip.
pip install cvxpy
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.