I want to install Apache server module mod_wsgi on (Server version: Apache/2.4.56) Amazon Linux 2023 a Lightsail Instance. I have python3.9 and I tried with rpm it's showing error - Problem: conflicting requests nothing provides libpython2.7.so.1.0()(64bit) needed by mod_wsgi-3.4-12.amzn2.0.2.x86_64
Yum install command is unable to find package. pip install is also not working.
Tried with Source Code (mod_wsgi) but it showing error for - apxs2, perhaps it will require to install httpd-devel and I am supposed that it may affect my already installed httpd on which sites are published.
Upgrades are available - releasever=2023.2.20231018 & releasever=2023.2.20231026 Can upgrades fix it?
So please help me, how to install it?