Centos7安装uwsgi报错
Uwsgi install error Centos7
我正在尝试在 Centos7 上安装 uwsgi,这样我就可以在 Centos7 上部署 Python rest 服务。
这是我看过的攻略
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/
我遇到了同样的问题 运行 这个命令
sudo apt-get install build-essential python-dev
如果使用 python3
sudo apt-get install build-essential python3-dev
一切正常!
希望对您有所帮助!
我正在尝试在 Centos7 上安装 uwsgi,这样我就可以在 Centos7 上部署 Python rest 服务。 这是我看过的攻略
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/
我遇到了同样的问题 运行 这个命令
sudo apt-get install build-essential python-dev
如果使用 python3
sudo apt-get install build-essential python3-dev
一切正常!
希望对您有所帮助!