python ipopt ins

2024-09-27 23:26:16 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试从mac终端安装ipopt,但遇到以下错误: terminal

/usr/bin/clang -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -g build/temp.macosx-10.6-intel-3.6/src/callback.o build/temp.macosx-10.6-intel-3.6/src/pyipoptcoremodule.o -L/usr/local/lib -lipopt -lcoinblas -lcoinmumps -lcoinmetis -lcoinlapack -ldl -lm -o build/lib.macosx-10.6-intel-3.6/pyipopt/pyipoptcore.cpython-36m-darwin.so

ld:
library not found for -lipopt
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/usr/bin/clang' failed with exit status 1


Tags: buildsrcbinlibusrwitherrortemp
2条回答

ipopt库丢失。试试看

然后再次运行pip install ipopt。在

我不确定是否太迟了,但你可以在这里试试

git clone https://github.com/coin-or/Ipopt
make
make test
make install

其中包括您前面提到的丢失的文件Ipopt/src/Interfaces/IpIpStdCInterface.h

相关问题 更多 >

    热门问题