5

我安装了 libmemcached 0,37 和 ln -s /usr/local/lib/libmemcached.so.2 /usr/lib/libmemcached.so.2

但是当我运行 manage.py 它仍然返回
import _pylibmc RuntimeError: pylibmc requires >= libmemcached 0.32, was compiled with 0.31

我尝试安装较新的 libmemcached,但他们没有文件 libmemcached.so.2

4

2 回答 2

15

您只需要在安装之前安装这些依赖项pylibmc

sudo apt-get install -y libmemcached-dev zlib1g-dev libssl-dev python-dev build-essential

pip install pylibmc

是 Github 上的要点,可以帮助您。

于 2013-01-15T07:11:04.523 回答
0

You should install python-memcached

You can install like this,

sudo pip install python-memcached 

OR

sudo apt-get install python-memcache 

python2.7-dev if not installed, you have to install like this,

sudo apt-get install python2.7-dev
于 2013-01-15T06:58:20.937 回答