运行时
pip install pylibmc
在Ubuntu上,我遇到了以下错误:_pylibmcmodule.h:42:36: fatal error: libmemcached/memcached.h: No such file or directory
运行时
pip install pylibmc
在Ubuntu上,我遇到了以下错误:_pylibmcmodule.h:42:36: fatal error: libmemcached/memcached.h: No such file or directory
sudo apt-get install libmemcached-dev zlib1g-dev
Zags的答案在Ubuntu 13.10上对我没有起作用。 libmemcached-dev已经安装好了,但我还需要执行以下命令:
sudo apt-get install zlib1g-dev
也许这对其他人有所帮助。
使用以下命令安装libmemcached
sudo apt-get install libmemcached-dev zlib1g-dev
然后设置环境变量并安装
LIBMEMCACHED=/opt/local pip install pylibmc