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

相关文章:

  • 2022-12-23
  • 2021-09-14
  • 2021-08-02
  • 2022-01-18
  • 2021-05-28
  • 2021-10-14
  • 2022-02-22
猜你喜欢
  • 2021-12-10
  • 2021-08-29
  • 2021-10-03
  • 2021-08-16
  • 2022-01-21
  • 2022-12-23
相关资源
相似解决方案