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

  1. You download snappy lib at here: https://code.google.com/p/snappy/
  2. Extract it
  3. Install by command lines follows: $: ./configure $: make $: make install
  4. Install python-snappy: $: pip 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).


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

Tags:

Python

Gcc