1

我试图在 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。试图找到如何安装它但失败了,有人可以帮助我吗?

谢谢。

4

1 回答 1

0

我猜你不是在 Cygwin 下运行这个,所以你有几个挑战。你安装了gcc吗?它是您的安装所必需的。您还需要安装 Boost,正如 Bart 在评论中所说,最好的办法是查看他们的构建/安装文档

于 2012-04-25T11:32:39.543 回答