我使用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