标题: 安装module时报”The C extension could not be compiled“ [打印本页] 作者: inpool 时间: 2013-04-22 19:35 标题: 安装module时报”The C extension could not be compiled“ 在windows和linux都报这个警告。gcc也安装了,还要什么条件才能编译呢作者: ts32767 时间: 2013-04-22 19:43
说明一个问题:你编译Python用的编译器和编译你安装的库的 C extension用到的编译器不相同,通常这个warning还有如下的提示:
WARNING: The C extension could not be compiled, ××××××××
Below is the output showing how the compilation failed:
Python was built with Visual Studio 2003;
extensions must be built with a compiler than can generate compatible binaries.
Visual Studio 2003 was not found on this system. If you have Cygwin installed,
you can try compiling with MingW32, by passing "-c mingw32" to setup.py.作者: inpool 时间: 2013-04-23 12:56
搞定了,原因是没有安装python-dev包