pythonmemcachedosx-lionlibmemcached

Error when install pylibmc using pip


Hello when I attempt to install pylibmc on OSX Lion using pip I get the following error:

./_pylibmcmodule.h:42:10: fatal error: 'libmemcached/memcached.h' file not found

#include <libmemcached/memcached.h>

         ^

1 error generated.

error: command 'clang' failed with exit status 1

Any clues at how to solve this issue?


Solution

  • libmemcached may also be installed using Homebrew.

    brew install libmemcached
    

    After that, pip install pylibmc worked for me without needing to specify any additional arguments.