我使用Amazon EC2上的Ubuntu 11.04服务器错误安装Python-瞬间:瞬间-CH:没有这样的文件或目录
sudo pip install python-snappy
我也尝试下载包并进入“命令蟒蛇的setup.py安装”
我得到了错误:
running build
running build_ext
building 'snappy' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c snappymodule.cc -o build/temp.linux-x86_64-2.7/snappymodule.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
snappymodule.cc:31:22: fatal error: snappy-c.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
我怎么能摆脱这种错误的?
来源:https://github.com/andrix/python-snappy
安装[snappy](http://code.google.com/p/snappy/)C库。 – jfs 2012-07-10 14:57:50
谢谢它的作品! – saravanan 2012-07-10 15:10:22
你可以分享你如何安装清爽的C库吗?将其添加到python安装之前的路径或其他。感谢 – 2013-08-26 21:50:01