Installation via PIP (all platforms)
The latest version of ECOS is available via pip:
This will download the relevant wheel for your machine.
Building from source (non-Windows)
To create the Python interface, you need Numpy and Scipy. For installation instructions, see their respective pages. Once those are installed, the following lines of code should work:
python setup.py install
You may need sudo privileges for a global installation.
Building from Source (Windows)
Windows users may experience some extreme pain when installing ECOS for Python 2.7. We suggest switching to Linux or Mac OSX.
If you must use (or insist on using) Windows, we suggest using the Miniconda distribution to minimize this pain.
If during the installation process, you see the error message Unable to find vcvarsall.bat, you will need to install Microsoft Visual Studio Express 2008, since Python 2.7 is built against the 2008 compiler.
If using a newer version of Python, you can use a newer version of Visual Studio. For instance, Python 3.3 is built against Visual Studio 2010.