Re: [問題] module不知道如何安裝
※ 引述《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
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
Python 近期熱門文章
PTT數位生活區 即時熱門文章