<p><a href="http://rdflib.net/" rel="nofollow noreferrer">RDFLib</a>需要编译C扩展才能安装在ActiveState Python2.5上;据我所知,web上没有明显的二进制安装程序。尝试使用<code>python setup.py install</code>进行安装时,将生成以下消息:</p>
<p><code>error: Python was built with Visual Studio 2003;</code><br/>
<code>extensions must be built with a compiler than can generate compatible binaries.</code><br/>
<code>Visual Studio 2003 was not found on this system. If you have Cygwin installed,</code><br/>
<code>you can try compiling with MingW32, by passing "-c mingw32" to setup.py.</code></p>
<p>web上有<a href="http://boodebr.org/main/python/build-windows-extensions" rel="nofollow noreferrer">various</a><a href="http://isegserv.itd.rl.ac.uk/blogs/alistair/" rel="nofollow noreferrer">resources</a>关于为讨论使用MinGW的distutil配置编译器的内容,尽管我还没有完成这项工作。作为一种选择,我有VS2005。在</p>
<p>有谁能明确地告诉我,您是否可以使用VS2005中的C编译器为VS2003编译的Python(本例中是activestatepython2.5)构建Python扩展模块。如果可能,需要什么配置?在</p>