我试图在Centos7上安装uwsgi,以便在Centos7上部署Python服务。这是我见过的指南
现在,当我试图安装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');f.close();(编译(代码,__file__,'exec'))“安装-记录/tmp/pip-vcgfSt-记录/安装-记录-tmp单版本-外部管理-编译-安装-标头__file__失败,错误代码1在/tmp/pip-构建-oEzz7uf/uwsgi/
发布于 2017-04-22 23:09:31
我也有同样的问题,运行以下命令
sudo apt-get install build-essential python-dev如果使用python3
sudo apt-get install build-essential python3-dev一切都正常!
希望这能帮到你!
https://stackoverflow.com/questions/43564146
复制相似问题