Uwsgi安装错误Centos7

2024-04-26 13:36:27 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试在Centos7上安装uwsgi,以便在Centos7上部署pythonrest服务。 这是我见过的导游

Instal Flask Restful Service On Centos

现在,我在尝试安装uwsgi时收到以下错误:

Command "/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" failed with error code 1 in /tmp/pip-build-oEZ7uf/uwsgi/


Tags: installpiprestapihomecoderecorduwsgi
1条回答
网友
1楼 · 发布于 2024-04-26 13:36:27

我遇到了同样的问题,运行这个命令

sudo apt-get install build-essential python-dev

如果用Python3

^{pr2}$

一切正常!在

希望这对你有帮助!在

相关问题 更多 >