I have python2.7 and python3.8 installed on Centos 6.10.
Current Rpm version is 4.8.0. Python2.7 is managed to import the rpm module but not Python3.8.
These are the files in python2.7/site-packages/rpm directory
__init__.py
__init__.pyo
__init__.pyc
_rpmmodule.so
_rpmbmodule.so
transaction.py
transaction.pyc
transaction.pyo
How to add the rpm-python to Python3/site-packages so that it can be imported.