[PYTHON] How to get PyCPX installed (OSX Yosemite, Canopy)

PyCPX is a python wrapper for the IBM CPlex. While it can be downloaded via pip and easy_install, we need several steps to successfull installation.

Environment:

Step 1: installing CPLEX

Step 2: installing PyCPX with linking CPLEX

In file included from pycpx/pyconcert.cpp:255:

pycpx/cplex_interface.hpp:12:10: fatal error: 'ilcplex/ilocplexi.h' file not found

#include <ilcplex/ilocplexi.h>

We actually need to specify the include directory that you downloaded in Step 1! The answer is:

pip install --global-option='build_ext' --global-option=-i[the path where you downloaded cplex]/cplex_studio1261/cplex/include pycpx

See also http://stackoverflow.com/questions/18783390/python-pip-specify-a-library-directory-and-an-include-directory

Recommended Posts

How to get PyCPX installed (OSX Yosemite, Canopy)
How to get started with Python
How to get started with Django
How to get parent id with sqlalchemy
How to get rid of long comprehensions
How to get IP when Tornado + nginx
How to get a stacktrace in python
How to get colored output to the console
How to run Cython on OSX Memo
How to get started with laravel (Linux)
How to get results from id in Celery
[Django] How to get data by specifying SQL.
How to get help in an interactive shell
How to get article data using Qiita API
How to install OpenGM on OSX with macports
How to get dictionary type elements of Python 2.7
How to get the files in the [Python] folder
How to uninstall a module installed using setup.py
[Rails] How to get location information using Geolocation API
How to get the variable name itself in python
How to get the number of digits in Python
How to export / import Zope zope object installed with Plone-4.1.5-UnifiedInstaller-20120604.tgz
How to get more than 1000 data with SQLAlchemy + MySQLdb
How to get mouse wheel verdict with Python curses
How to get RGB and HSV histograms in OpenCV