Installing pylibmc on Ubuntu

后端 未结 3 1221
余生分开走
余生分开走 2020-12-29 19:07

When running

pip install pylibmc

on Ubuntu, I get the following error:

_pylibmcmodule.h:42:36: fatal error: libmemcached/me         


        
相关标签:
3条回答
  • 2020-12-29 19:33
    sudo apt-get install libmemcached-dev zlib1g-dev
    
    0 讨论(0)
  • 2020-12-29 19:33

    Install libmemcached using below command

    sudo apt-get install libmemcached-dev zlib1g-dev
    

    Then set the environment variable and install

    LIBMEMCACHED=/opt/local pip install pylibmc
    
    0 讨论(0)
  • 2020-12-29 19:47

    Zags answer didn't do the trick for me on Ubuntu 13.10. libmemcached-dev had already been installed. I had to also do:

    sudo apt-get install zlib1g-dev

    Maybe that will help someone else.

    0 讨论(0)
提交回复
热议问题