Lpsolve python installation error

901 views Asked by At

When i download lp_solve_5.5.2.0_Python_source.tar.gz

and run python setup.py install

it throws:

pythonmod.h:15:20: fatal error: lp_lib.h: No such file or directory
 #include "lp_lib.h"

What do i need to do to install lpsolve.

2

There are 2 answers

2
mossplix On

You need to install lp_solve first before installing the python adapter.

0
Alex On

If you are using python 3.x look here: https://github.com/chandu-atina/lp_solve_python_3x