I get the following error when trying "pip install glpk" but I get a series of errors. This is not like post 22135568, which actually was resolved with the command I'm using.
The errors look like:
In file included from src/lp.c:24:
src/kkt.h:30:3: error: unknown type name 'LPXKKT'
LPXKKT kkt;
^
src/lp.c:182:18: warning: implicit declaration of function 'lpx_read_model' is invalid in C99 [-Wimplicit-function-declaration]
self->lp = lpx_read_model(model[0], model[1], model[2]);
^
src/lp.c:182:16: warning: incompatible integer to pointer conversion assigning to 'glp_prob *' (aka 'struct glp_prob *') from 'int' [-Wint-conversion]
self->lp = lpx_read_model(model[0], model[1], model[2]);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/lp.c:338:7: warning: implicit declaration of function 'lpx_read_bas' is invalid in C99 [-Wimplicit-function-declaration]
if (lpx_read_bas(LP, bas_filename)) {
^
src/lp.c:349:8: error: use of undeclared identifier 'LPX_E_OK'
case LPX_E_OK: Py_RETURN_NONE;
^
I have tried homebrew but this does not install glpk. For context, I'm using the iPython notebook.