Glpk err, import glpk module not found

I cannot run glpk module based programs on python 2.7.1 platform, Mac OS.

I'm not sure if the glpk module has been installed successfully.

kindly help me i am new to this.

+1


source to share


1 answer


GLPK may be trying to load " _glpkpi.so " but it can't find it, try adding this library to your path

import sys    
sys.path.append('/usr/lib/python-support/python-glpk/python2.7')

      



Of course you need to change '/usr/lib/python-support/python-glpk/python2.7' for the correct path of your _glpkpi.so file

it's better

0


source







All Articles