安装PyIpopt:无法打开包含文件:' unistd.h':没有

时间:2016-03-11 10:56:35

标签: python installation ipopt

我试图让Ipopt在Windows上使用Python。 到目前为止,我已经使用CygWin64安装了Ipopt(https://projects.coin-or.org/Ipopt)。这似乎有效。然后我从https://github.com/xuy/pyipopt获得了代码。 然后我用cmd和#34; python setup.py install"我收到以下错误:

C:\Users\ansofi\Desktop\pyipopt>python setup.py install
C:/cygwin/home/ansofi/CoinIpopt\lib
running install
running build
running build_py
running build_ext
building 'pyipoptcore' extension
c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c 

/nologo   /Ox
/MD /W3 /GS- /DNDEBUG -IC:\Python27\lib\site-packages\numpy\core\include -IC:/cy
gwin/home/ansofi/CoinIpopt\include/coin/ -IC:\Python27\include -IC:\Python27\PC
/Tcsrc/callback.c /Fobuild\temp.win32-2.7\Release\src/callback.obj
callback.c
c:\python27\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(
12) : Warning Msg: Using deprecated NumPy API, disable it by #defining NPY_NO_DE
PRECATED_API NPY_1_7_API_VERSION
src/callback.c(37) : fatal error C1083: Cannot open include file: 'unistd.h': No
 such file or directory
error: command 'c:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\BIN\\c
l.exe' failed with exit status 2

有人可以解释为什么会这样吗?

0 个答案:

没有答案