0

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.

quesaionasis
  • 137
  • 1
  • 2
  • 11

2 Answers2

0

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

mossplix
  • 3,783
  • 2
  • 26
  • 31
  • how do you do that? I copied like in the tutorial the so/pyd from lp_solve_5.5.2.0_Python2.5_exe_ux64.tar.gz to ~/local/python/site-packages – quesaionasis Jun 11 '15 at 16:53
  • yes but the folder contains only a .so and a prebuild executeable "how exactly do you install something there"? – quesaionasis Jun 11 '15 at 16:58
0

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

Alex
  • 533
  • 4
  • 12