To resolve this issue, you need to install the following packages:
sudo yum install -y libselinux-python3
yum install -y libyaml-devel python3-devel
Once these packages are installed, the issue should be resolved.