I am using amazon ec2 ubuntu 11.04 server
sudo pip install python-snappy
also I tried to downloaded package and entered \"sudo python set
for Oracle Linux with Python 3.X:
you need to enable optional_latest repository as a first step,
use for enabling the following repo
$ yum-config-manager --enable ol7_optional_latest
"ol7_optional_latest" repo will be enabled for yum lookup.
then install packages using,
$ yum -y install gcc gcc-c++ snappy snappy-devel
then with pip install the python-snappy package,
$ pip3 install python-snappy
You can install Snappy C library with following commands:
DEB-based: sudo apt-get install libsnappy-dev
RPM-based: sudo yum install libsnappy-devel
Brew: brew install snappy
You need Snappy C library
Then you have to install python-snappy wrapper.
It seems you didn't install Snappy-C library
Try it ..as already a fellow commented for your post
UPDATE: See more highly upvoted post below, which includes instructions to install on DEB-based, RPM-based, and Mac OS (Brew).
I had some trouble getting snappy to install. Finally downloaded the pre-build stuff as offered by https://www.lfd.uci.edu/~gohlke/pythonlibs/ and all went well. (Unofficial Windows Binaries for Python Extension Packages)
To solve this issue in Mac OS X with MacPorts installed, you can do:
$ sudo port install snappy
$ CPPFLAGS="-I/opt/local/include -L/opt/local/lib" pip install python-snappy
According to the repo
How to install it on Mac OS X?
It has been reported a few times (Issue #7 and #23) that it can't be installed correctly the library in Mac. The procedure should be,
$ brew install snappy # snappy library from Google
$ CPPFLAGS="-I/usr/local/include -L/usr/local/lib" pip install python-snappy