看板 Python 關於我們 聯絡資訊
※ 引述《Arton0306 (Ar藤)》之銘言: : 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. : ********************************************************************** : error: Setup script exited with error: can't copy : 'simplejson.egg-info\native_li : bs.txt': doesn't exist or not a regular file : 安裝最後出現這個 : Python是Visual Studio做的? 我還要裝Visual Studio2003?? : 怎麼有這種怪事... ※ 引述《Arton0306 (Ar藤)》之銘言: : 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. : ********************************************************************** : error: Setup script exited with error: can't copy : 'simplejson.egg-info\native_li : bs.txt': doesn't exist or not a regular file : 安裝最後出現這個 : Python是Visual Studio做的? 我還要裝Visual Studio2003?? : 怎麼有這種怪事... http://pypi.python.org/pypi/simplejson simplejson 的 code 有部分是用c寫來加速的 因此需要vs 或 mingw來 compile 這種情況蠻常見的 不然就要抓看看有沒有寫成for windowns安裝檔的版本 另外印象中如不考慮加速的話 直接將simplejson http://www.undefined.org/python/ejson 抓下來後解壓到 C:\Python25\Lib\site-packages\simplejson 也是可以用 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.110.216.36 ※ 編輯: Lucemia 來自: 140.110.216.36 (03/25 08:57)
Arton0306:感謝! 04/06 00:20