作者:糖果

要用一个小系统,需要装PIL和Pylibmc。

PIL就不用pip装了,直接用apt-get装:

Code
sudo apt-get install python-imaging

Pylibmc需要安装下面的依赖库:

Ubuntu

Code
sudo apt-get install memcached
sudo apt-get install libmemcached-dev
sudo apt-get install libmemcached-tools 

CenOS

Code
sudo yum install libmemcached10
sudo yum install libmemcached10-devel

最后安装

Code
pip install pylibmc