如何在CentOS 7上使用python3.5为Apache 2.4+安装mod_wgsi [英] How to install mod_wgsi for apache 2.4+ with python3.5 on CentOS 7
问题描述
标题为如何在CentOS 7上为python3.5安装mod_wgsi"?
As title says "How to install mod_wgsi for python3.5 on CentOS 7"?
$ pip3.5安装mod_wgsi无效
$pip3.5 install mod_wgsi did not work
Collecting mod_wgsi
Could not find a version that satisfies the requirement mod_wgsi (from versions: )
No matching distribution found for mod_wgsi
sudo yum install libapache2-mod-wsgi-py3也失败:
sudo yum install libapache2-mod-wsgi-py3 failed too:
Loaded plugins: fastestmirror, product-id, search-disabled-repos, subscription-manager
This system is not registered with Subscription Management. You can use subscription-manager to register.
Loading mirror speeds from cached hostfile
* base: mirror.daniel-jost.net
* epel: mirrors.n-ix.net
* extras: mirror.daniel-jost.net
* ius: mirror.amsiohosting.net
* remi: mirror.23media.de
* remi-php56: mirror.23media.de
* remi-safe: mirror.23media.de
* updates: mirror.daniel-jost.net
No package libapache2-mod-wsgi-py3 available.
Error: Nothing to do
任何有关在CentOS 7上使用python3.5运行apache2.4 + mod_wsgi和python3.5的建议都非常欢迎!
Any suggestions on how to run apache2.4+ mod_wsgi with python3.5 on CentOS 7 are very welcome!
推荐答案
我看到您已经启用了IUS存储库.您不必安装SCL箍,而只需安装普通的软件包即可.
I see you already have the IUS repo enabled. Rather than jumping through SCL hoops, you can just install a normal package.
yum install python35u-mod_wsgi
这将使用标准文件系统位置来与库存的Apache HTTPD 2.4一起使用.
This will use standard filesystem locations to work with stock Apache HTTPD 2.4.
/etc/httpd/conf.modules.d/10-wsgi-python3.5.conf
/usr/lib64/httpd/modules/mod_wsgi_python3.5.so
这篇关于如何在CentOS 7上使用python3.5为Apache 2.4+安装mod_wgsi的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!