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
2
Answers
You cannot do that from any repo. No available repo / no packages.
Reason: python2.7 had End Of Life two years ago.
Yes, you can, using this method:
If you cannot find a package for your distribution (and you probably should be able to), you can download a single-file executable "AppImage" containing Python 2.7 and the standard library. Just download the file, make it executable, rename it "python2" or create a symlink of that name pointing to the AppImage file, and put it in /usr/local/bin/, and getmail will happily run with it.
For example, on an x86_64 Linux system, you could:
Source: https://pyropus.ca/software/getmail/documentation.html#python3