我安装了一些依赖项:
sudo apt-get install python3.2-dev
sudo apt-get install libmemcached-dev
并试图:
pip install pylibmc
在 virtualenv 中使用我的 python 3.2
但有这个:
_pylibmcmodule.c:77:9: error: ‘PylibMC_Client’ has no member named ‘ob_type’
_pylibmcmodule.c:1812:39: error: ‘PyInt_Type’ undeclared (first use in this function)
_pylibmcmodule.c:1841:53: error: ‘PylibMC_Client’ has no member named ‘ob_type’
error: command 'gcc' failed with exit status 1
我该如何解决?
(它适用于 python 2.7)