运行时
pip install pylibmc
在Ubuntu上,我收到以下错误:
_pylibmcmodule.h:42:36: fatal error: libmemcached/memcached.h: No such file or directory
答案 0 :(得分:78)
sudo apt-get install libmemcached-dev zlib1g-dev
答案 1 :(得分:8)
Zags的答案在Ubuntu 13.10上没有为我做的伎俩。已经安装了libmemcached-dev。我也必须这样做:
sudo apt-get install zlib1g-dev
也许这会帮助别人。
答案 2 :(得分:3)
使用以下命令安装libmemcached
sudo apt-get install libmemcached-dev zlib1g-dev
然后设置环境变量并安装
LIBMEMCACHED=/opt/local pip install pylibmc