python报错解决 fatal error: libmemcached/memcached.h: 没有那个文件或目录

python报错解决 fatal error: libmemcached/memcached.h: 没有那个文件或目录

环境:Ubuntu20.4

    In file included from src/_pylibmcmodule.c:34:
    src/_pylibmcmodule.h:42:10: fatal error: libmemcached/memcached.h: 没有那个文件或目录
       42 | #include <libmemcached/memcached.h>
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

意思是

找不到 'libmemcached/memcached.h'文件

解决办法

linux/windows

apt-get install libmemcached-dev
评论区
头像