在MAC OS X 10.10 Yosemite上安装带有asyncio支持的uWSGI

时间:2014-11-30 13:10:44

标签: macos uwsgi osx-yosemite python-asyncio greenlets

我已尝试在uWSGI documentation之后使用 asyncio 支持构建 uWSGI 。我在Virtualenv上使用 OS X 10.10 Yosemite

首先,我使用命令python3-config --include来获取我的python3包含路径。但是当我尝试使用以下命令构建uWSGI + Asyncio时:

CFLAGS="-I/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/include/python3.4m" UWSGI_PROFILE="asyncio" pip install uwsgi

我收到以下错误:

plugins/greenlet/greenlet.c:2:10: fatal error: 'greenlet/greenlet.h' file not found

#include <greenlet/greenlet.h>
     ^
1 error generated.

之前是否有人遇到此问题?我已经尝试在我的virtualenv和我的全局python安装中使用 pip 首先尝试安装 Greenlet ,但我仍然得到'greenlet/greenlet.h' file not found。有什么建议吗?

1 个答案:

答案 0 :(得分:2)

固定!看起来首先需要在全局python3.4解释器上安装greenlet:

pip3 install greenlet

然后在virtualenv上运行uWSGI + Asyncio安装,如下所示:

CFLAGS="-I/usr/local/include/python3.4m" UWSGI_PROFILE="asyncio" pip install uwsgi

如果有人需要更多细节,我已经创建了一个小教程:

相关问题