1
我想安裝LP解決5.5使用Python 2.7在Ubuntu 13.10 64位。我在我的智慧結束! :(LPSolve,Python和Ubuntu?
我已經安裝了Python
/home/user/$ python
Python 2.7.5+ (default, Sep 19 2013, 13:48:49)
[GCC 4.8.1] on linux2
Python路徑如下:。
>>> import sys
>>> print sys.path
print sys.path
['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client', '/usr/lib/python2.7/dist-packages/ubuntuone-client', '/usr/lib/python2.7/dist-packages/ubuntuone-control-panel', '/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol', '/usr/bin', '/usr/lib/lpsolve/', '/user/lib/']
lp-solve
和liblpsolve55-dev
包從Ubuntu的軟件庫安裝LP解決命令行工具運行正常。
/home/user/$ lp_solve -h
Usage of lp_solve version 5.5.0.13:
但是lpsolve失敗python,
>>> from lpsolve55 import *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named lpsolve55
我檢查過下列文件是否存在。
/usr/bin/lp_solve /usr/lib/lp_solve/liblpsolve55.so
我懷疑我錯過了蟒蛇lpsolve55.so驅動器作爲Compile the lpsolve driver概述了可編譯。我真的不知道該怎麼做。我之前在基於Windows的系統上使用過Python解決方案,但我沒有編譯任何東西。
請幫忙。