I've tried pip and easy_install, but I keep getting the following error: error: command '/usr/bin/llvm-gcc' failed with exit status 1
I'm running OSX Lion and the install runs inside a virtualenv, with Python 2.7.2.
Thanks in advance.
I've tried pip and easy_install, but I keep getting the following error: error: command '/usr/bin/llvm-gcc' failed with exit status 1
I'm running OSX Lion and the install runs inside a virtualenv, with Python 2.7.2.
Thanks in advance.
可能是libmemcached没有安装造成的。在尝试安装 pylibmc 之前,您应该先安装 libevent & memcache & libmemcached。如果您使用的是自制软件,则可以使用它来完成安装 libmemcached 依赖项的进度。像这样:
brew install libmemcached
首先一个问题:是否安装了 libmemcached?如果没有,请安装并重试。可能是这样,但以防万一......
如果 pylibmc 仍然没有安装,问题可能是 libmemcached 没有安装在 gcc 可以发现它的目录中(在我的情况下这是 macports 症状),在这种情况下,您可以在运行 pip 时将位置存储在环境中命令行:
LIBMEMCACHED=/opt/local pip install pylibmc
我尝试了上述所有选项,但没有成功。然后我去了这个网站并按照说明(http://sendapatch.se/projects/pylibmc/install.html#requirements)
基本上这样做:
pip install pylibmc --install-option="--with-libmemcached=/usr/local/"
就是这样。
我有一台装有 MacOS Mojave、python 3.6 的 Mac
检查是否libmemcached
安装。如果没有找到,那么安装它,
brew install libmemcached
其余的东西就可以正常工作了。
我在安装 django 测试套件时解决了这个问题。