swigiby Python包编译错误

2024-10-04 07:28:26 发布

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

我正在尝试为Python安装swigiby包。我使用的是64位Windows7,32位Anaconda(Python2.7.9)。你知道吗

https://github.com/Komnomnomnom/swigibpy

我试着按照这条线索中的说明去做 Making Cython work with Python 3.4 on Anacondas, Windows 7 64-bit

安装Visual Studio for Python 2.7。。你知道吗

我得到这个错误。有人知道怎么解决吗?你知道吗

C:\swigibpy-master>python setup.py build_ext --inplace --compiler=msvc
running build_ext
building '_swigibpy' extension
C:\Users\tmgike\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.
0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DIB_USE_STD_STRING=1 -IIB
-IIB/src -IIB/shared -IC:\Anaconda\include -IC:\Anaconda\PC /TpIB/src/EClientSoc
ketBase.cpp /Fobuild\temp.win32-2.7\Release\IB/src/EClientSocketBase.obj /D_CRT_
SECURE_NO_DEPRECATE /EHsc /wd4355 /wd4800
EClientSocketBase.cpp
IB/shared\EClientSocketBaseImpl.h(308) : error C3861: 'snprintf': identifier not
 found
error: command 'C:\\Users\\tmgike\\AppData\\Local\\Programs\\Common\\Microsoft\\
Visual C++ for Python\\9.0\\VC\\Bin\\cl.exe' failed with exit status 2

C:\swigibpy-master>

Tags: buildsrcmasterforlocalwithanacondausers