关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。
我们不允许在 Stack Overflow 上提出有关通用计算硬件和软件的问题。您可以编辑问题,使其成为 on-topic对于堆栈溢出。
1年前关闭。
Improve this question
我在关注这个 article (在 dev.to 上)关于如何部署 Flask
与 Apache
在 CentOS
,然后我得到一个错误。我无法安装 mod_wsgi
通过 yum
在我的机器上运行 CentOS v8
:
$ sudo yum install mod_wsgi
No match for argument: mod_wsgi
Error: Unable to find a match: mod_wsgi
我该如何克服这个错误?我感谢您的帮助。
最佳答案
引用官方mod_wsgi
关于 pypi
的文档
https://pypi.org/project/mod-wsgi/
The second way of installing mod_wsgi is to install it as a Python package into your Python installation using the Python pip install command. This can be used on all platforms, including Windows.
$ pip install mod_wsgi
安装mod_wsgi
全局 , 意思是 停用 首先是您的Flask
的当前虚拟环境应用程序。
关于python - 无法在 CentOS v8 上通过 yum 安装 mod_wsgi,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62655063/