2012-10-29 90 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提供的。