'how do I install python2 on centos 9 stream?

I am trying to figure out how to install python2 on centos9 stream. I am getting the errors below. Any suggestions?

sudo dnf install python2

Last metadata expiration check: 0:04:48 ago on Thu 24 Feb 2022 01:43:10 PM EST.

No match for argument: python2

Error: Unable to find a match: python2


Solution 1:[1]

how to install python2 on centos9 stream

You cannot do that from any repo. No available repo / no packages.

Reason: python2.7 had End Of Life two years ago.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Knud Larsen