【发布时间】:2017-09-19 17:19:12
【问题描述】:
我正在尝试在 Centos7 上安装 uwsgi,以便可以在 Centos7 上部署 Python REST 服务。 这是我看过的攻略
Instal Flask Restful Service On Centos
现在我在尝试安装 uwsgi 时收到此错误:
命令 "/home/admin60713620/Documents/PYTHON_REST_API/rest/restenv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-oEZ7uf/uwsgi/setup.py'; f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code , __file__, 'exec'))" install --record /tmp/pip-vcgfSt-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/admin60713620/Documents /PYTHON_REST_API/rest/restenv/include/site/python2.7/uwsgi" 失败,错误代码 1 在 /tmp/pip-build-oEZ7uf/uwsgi/
【问题讨论】:
-
最后一行只告诉我们最终的退出代码。实际的错误应该已经打印在上面了。你能包括更多的输出吗?您可能想使用工具栏上的
{}按钮将其格式化为代码。 -
尝试安装
OS所需的python模块(开发、基本等)! -
我已经修复了安装 python-devel 的错误