Pulpsolvererror: Pulp: Error While Trying To Execute Glpsol In Python 2.7
I'm running PuLP on OS X via a iPython notebook and Python 2.7. glpk is installed using brew install homebrew/science/glpk and PuLP is installed via pip install pulp. However I'm g
Solution 1:
If you run
pulp.pulpTestAll()
you probably will see a line like this:
Solver pulp.solvers.GLPK_CMD unavailable
If so, all you have to do is to install glpk-utils package on your linux. If you succeeded with it, you should be able to call
glpsol
from command line, too.
Solution 2:
I had the same error in Ubuntu and this solved it.
It is necessary to issue the following command after make install:
sudo ldconfig
Ldconfig creates the necessary links and cache to the most recent shared libraries.
https://lists.gnu.org/archive/html/help-glpk/2013-09/msg00018.html
Post a Comment for "Pulpsolvererror: Pulp: Error While Trying To Execute Glpsol In Python 2.7"