最近在Windows下写了个小东西,打算发布到内部的centos7服务器上,部门内部使用。参考以下链接准备开干:CentOS7部署Flask
结果因为我提前装了apache,再按上述链接里面的文章里面做,结果忽略了第一步中的httpd-devel
# yum install -y httpd httpd-devel
导致在安装mod_wsgi时报错了,报错信息如下
ERROR: Command errored out with exit status 1:
command: /var/www/daka/dakaenv/bin/python -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-g6ya1rge/mod-wsgi_a478e2dcbfbf4f1aabca396d8115c85c/setup.py’"’"’; file=’"’"’/tmp/pip-install-g6ya1rge/mod-wsgi_a478e2dcbfbf4f1aabca396d8115c85c/setup.py’"’"’;f = getattr(tokenize, ‘"’"‘open’"’"’, open)(file) if os.path.exists(file) else io.StringIO(’"’"‘from setuptools import s