Вопрос:

Uwsgi install error Centos7

python nginx wsgi

487 просмотра

1 ответ

118 Репутация автора

I'm trying to install on Centos7 the uwsgi so I can deploy a Python rest service on Centos7. This is the guide that I have seen

Instal Flask Restful Service On Centos

now I receive this error when I try to install 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/

Автор: APPGIS Источник Размещён: 22.04.2017 08:18

Ответы (1)


0 плюса

24 Репутация автора

Решение

I was having the same issue and run this command

sudo apt-get install build-essential python-dev

If using python3

sudo apt-get install build-essential python3-dev

and everything works!

Hope this help you!

Автор: Juan Alfieri Размещён: 22.04.2017 11:09
Вопросы из категории :
32x32