2012-04-24 29 views
1

我試圖在Windows下的Python 2.7 x86安裝ShoutPY(http://dingoskidneys.com/shoutpy/),但安裝失敗:安裝shoutpy/Boost.Python的在Windows

C:\Python27\Scripts>easy_install shoutpy 
Searching for shoutpy 
Reading http://pypi.python.org/simple/shoutpy/ 
Reading http://dingoskidneys.com/shoutpy/ 
Best match: shoutpy 1.0.0 
Downloading http://dingoskidneys.com/shoutpy/shoutpy-1.0.0.tar.gz 
Processing shoutpy-1.0.0.tar.gz 
Writing c:\users\vladim~1\appdata\local\temp\easy_install-pnwegl\shoutpy-1.0.0\s 
etup.cfg 
Running shoutpy-1.0.0\setup.py -q bdist_egg --dist-dir c:\users\vladim~1\appdata 
\local\temp\easy_install-pnwegl\shoutpy-1.0.0\egg-dist-tmp-otdtxq 
shoutpy.cc:26:28: fatal error: boost/python.hpp: No such file or directory 
compilation terminated. 
error: Setup script exited with error: command 'gcc' failed with exit status 1 

我想通什麼out是我缺少Boost.python。試圖找到如何安裝它,但失敗了,有人能幫我嗎?

謝謝。

+3

[文檔](http://www.boost.org/doc/libs/1_49_0/libs/python/doc/)是不夠的? – Bart 2012-04-24 19:58:13

+0

什麼是您的操作系統?似乎是你只需要安裝Boost -library的事實。例如,使用apt-get來做它。 – 2012-04-24 20:29:08

+0

@Masi它的Windows 7,找到Linux的解決方案,但我找不到任何Win ... – 2012-04-24 20:43:30

回答

0

我猜你沒有在Cygwin下運行,所以你有幾個挑戰。你安裝了gcc嗎?它是您的安裝所必需的。你還需要安裝Boost,並且Bart在評論中說,最好的辦法是檢查他們的build/install documentation

+0

我有gcc和我使用mingw所有「控制檯」的需求。目前正在用python構建boost,但是一旦我完成構建,仍然不確定將這些庫放在哪裏。 – 2012-04-25 14:48:59

+0

我沒有使用mingw,但是我的猜測是/ usr/lib /,/ lib /或者在你的python site-packages目錄中,這取決於正在構建的內容。真的很驚訝安裝不會爲你移動它們... – AlG 2012-04-25 15:37:33