Python Alternatives in RHEL based OS

# To configure the unversioned `python` command to Python 3.11

alternatives --set python /usr/bin/python3.11

# To configure the unversioned `python` command to Python 2

alternatives --set python /usr/bin/python2

References:

  • 1Configure python on RHEL8
Previous
Next