pip安装pylibmc报错

系统:macOS 10.15.5

我想将django项目clone下来跑一下测试用例,按照指导需要先装包:

$ python -m pip install -r requirements/py3.txt

发现报错:

  Running setup.py install for pylibmc ... error
  #include <libmemcached/memcached.h>
             ^~~~~~~~~~~~~~~~~~~~~~~~~~
    1 error generated.
    error: command 'gcc' failed with exit status 1

解决办法:

HOMEBREW_NO_AUTO_UPDATE=1 brew install libmemcached

参考:

https://stackoverflow.com/questions/14803310/error-when-install-pylibmc-using-pip

posted @ 2020-06-07 20:53  ssh_alitheia  阅读(649)  评论(0编辑  收藏  举报