python - 无法在 CentOS v8 上通过 yum 安装 mod_wsgi

标签 python django apache flask centos

关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。












我们不允许在 Stack Overflow 上提出有关通用计算硬件和软件的问题。您可以编辑问题,使其成为 on-topic对于堆栈溢出。


1年前关闭。







Improve this question




我在关注这个 article (在 dev.to 上)关于如何部署 FlaskApacheCentOS ,然后我得到一个错误。我无法安装 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/

相关文章:

python - 获取索引值的有效方法

python - Prometheus 跟踪自动缩放服务器中的请求

python - 在 Django 中,是否可以迁移任何特定的特定文件?

c - Apache 2.4 MPM worker : Thread Init?

java - wss 协议(protocol)的 Apache 反向代理

python - 使用 apache 和 mod_wsgi 的 Flask hello world 仅在 webroot 中显示文件

python - 在 Django 中保存一个 tmp 文件

多线程网络服务器上的 python + wsgi : is this a race condition?

django - 字段和base_fields-Django

javascript - Python 字典组合和 JS 原型(prototype)继承之间的实际区别