Error when install pylibmc using pip

前端 未结 10 1362
灰色年华
灰色年华 2021-01-31 01:22

Hello when I attempt to install pylibmc on OSX Lion using pip I get the following error:

./_pylibmcmodule.h:42:10: fatal error: \'libmemcached/memcached.h\' file         


        
10条回答
  •  暖寄归人
    2021-01-31 01:50

    I have the same problem because i have installed MEMCACHED and not LIBMEMCACHED, so, to resolve:

    brew uninstall memcached #to remove wrong package
    
    brew install libmemcached #install correct lib
    
    pip install pylibmc
    

    Its Works for me!

    : )

提交回复
热议问题