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
本文来自博客园,作者:ssh_alitheia,转载请注明原文链接:https://www.cnblogs.com/shanchuan/p/13062195.html