我安裝了一些依賴:我可以用python 3.2製作pylibmc嗎?
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)
我猜你需要開始移植,請參閱http://python3porting.com/cextensions.html –
@MartijnPieters,如果你想要測試它=)https://github.com/pashinin/pylibmc/tree/python3-test – Sergey