作者KSJ (阿真)
看板Python
标题Re: [问题] module不知道如何安装
时间Wed Sep 23 23:09:02 2009
※ 引述《abcg5 (nothing)》之铭言:
: 首先 我的电脑环境是windows XP SP3
: python 2.5
: 小弟想要使用RSSfeed去 抓新文章
: 找到的sparta这个API
: 这个API要求先安装RDFlib-2.4.2
: 我使用一般的easy_install -U "rdflib>=2.4.2"
: 以下是他的错误讯息
: warning: no files found matching 'example.py'
: error: Setup script exited with error: 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.
: 是指说 我要安装VS2003才行吗??
是 另外他说 如果你有装cygwin的话 可以用mingw32来做
在我用python内建模组 将C++档案变pyd档时
我也碰过类似的问题
好像是python2.5预设的东西就是vs2003的(应该是要钱)
不过cygwin是免费的 所以我就用了 上网抓抓装一装
有些环境变数要设定哦~
我的例子是打入
python setup.py build -c mingw32
参考一下~
: 另外我直接将RDFlib-2.4.2下载解压後
: 使用python setup.py install也失败了~
: 以下是错误讯息
: error: 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.
: 一样要我用MingW32(这是啥啊??)去compile setup.py
: 而且我不知道要如何用这东西compile...
: 请会使用的高手 教一下小弟! 谢谢!
就是要上网抓了~然後设定环境变数之类的的东西~ 加油
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.63.180