尝试在 Mac OSX Lion 上安装 pylibmc 时出错

发布于 2024-12-29 18:25:12 字数 149 浏览 2 评论 0原文

我尝试过 pip 和 easy_install,但不断收到以下错误: 错误:命令“/usr/bin/llvm-gcc”失败,退出状态为 1

我正在运行 OSX Lion,安装在 virtualenv 内运行,使用 Python 2.7.2。

提前致谢。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

神妖 2025-01-05 18:25:12

可能是没有安装libmemcached造成的。你应该安装 libevent &内存缓存和在尝试安装 pylibmc 之前,请先安装 libmemcached。如果您使用的是自制程序,则可以使用它来完成libmemcached依赖项的安装过程。
像这样:

brew 安装 libmemcached

it may caused by the libmemcached is not installed. You should install libevent & memcache & libmemcached first before you are trying install the pylibmc. If you are using homebrew, you can use it to finish the progress of install the dependency of the libmemcached.
like this:

brew install libmemcached
摘星┃星的人 2025-01-05 18:25:12

首先一个问题:libmemcached安装了吗?如果没有,请安装并重试。可能是,但以防万一......

如果 pylibmc 仍然没有安装,问题可能是 libmemcached 没有安装在 gcc 可以发现它的目录中(在我的情况下这是 macports 症状),在这种情况下你从命令行运行 pip 时可以存储环境中的位置:

LIBMEMCACHED=/opt/local pip install pylibmc

First a question: is libmemcached installed? If not, install it and retry. It probably is but just in case....

If pylibmc still doesn't install the problem is probably that libmemcached is not installed in a directory where gcc can discover it (this was a macports symptom in my case), in which case you can store the location in the environment when running pip from the command line:

LIBMEMCACHED=/opt/local pip install pylibmc

卷耳 2025-01-05 18:25:12

我尝试了以上所有选项,但没有运气。
然后我访问该网站并按照说明进行操作(http://sendapatch.se/projects /pylibmc/install.html#requirements

基本上就是这样做的:

pip install pylibmc --install-option="--with-libmemcached=/usr/local/"

就是这样。

我有一台 Mac,运行 MacOS Mojave、python 3.6

I tried all the above option with no luck.
I then went to this site and followed the instructions (http://sendapatch.se/projects/pylibmc/install.html#requirements)

Basically do this:

pip install pylibmc --install-option="--with-libmemcached=/usr/local/"

and that is it.

I have a Mac with MacOS Mojave, python 3.6

夏至、离别 2025-01-05 18:25:12

检查是否安装了libmemcached。如果找不到,则安装它
brew install libmemcached 其余的事情都会正常工作。

我在安装 django 测试套件时解决了这个问题。

Check if libmemcached is installed. If not found then install it with
brew install libmemcached and rest of things will work just fine.

I resolved this issue while installing django test suite.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文