我曾尝试在Windows上的python 2.7 x86下安装ShoutPY(http://dingoskidneys.com/shoutpy/),但安装失败:
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
我想到的是我错过了Boost.python。试图找到如何安装它但失败了,任何人都可以帮助我吗?
感谢。
答案 0 :(得分:0)
我猜你没有在Cygwin下运行这个,所以你有几个挑战。你安装了gcc
吗?这是您安装所必需的。您还需要安装Boost,正如Bart在评论中所说,最好的办法是查看他们的build/install documentation。