Error installing python-snappy: snappy-c.h: No such file or directory Error installing python-snappy: snappy-c.h: No such file or directory python python

Error installing python-snappy: snappy-c.h: No such file or directory


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


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


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).