2012-10-29 91 views
3

我在嘗試安裝和配置pyIpopt。 Ipopt已經安裝並且示例運行良好。導入pyIpopt時出錯

從貝,當我做進口pyIpopt,我得到的錯誤:

ImportError: /***PATH***/libipopt.so.1: undefined symbol: MPI_Init 

的pyIpopt Git項目的常見問題解答部分具有this提供這些類型的錯誤:

Do a Google search to find the library file, and add -lWhateverLibrary in the makefile of pyipopt.

我用google搜索了一下,發現這個:http://www.mcs.anl.gov/research/projects/mpi/www/www3/MPI_Init.html。 我不知道如何獲得庫或將其添加到生成文件...任何援助將不勝感激!

回答

1

剛剛在Ubuntu上有類似的問題。

使用libmumps-seq的工作對我來說:

  • 安裝libmumps-SEQ-4.9.2(只需用apt-get的,沿一側的普通libmumps)
  • 在setup.py在庫中的改變列表參數'coinmumps'爲'dmumps_seq-4.9.2'

重建並安裝。

如果我理解正確,默認的mumps是分佈式的(使用MPI lib,這可能是一個痛苦的世界),我需要的只是順序的mumps-seq提供的。