系统: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