As RHEL 8's default python interpreter becomes more and more dated, parts of the system are moving forward with newer interpreters. At present, ROS 2 will attempt to use the newest Python 3 interpreter available, but all of our dependencies are installed with the system's default interpreter.
Specifying Python_EXECUTABLE=/usr/bin/python3 should make ROS 2 use the system default interpreter even if a newer version is available.
As RHEL 8's default python interpreter becomes more and more dated, parts of the system are moving forward with newer interpreters. At present, ROS 2 will attempt to use the newest Python 3 interpreter available, but all of our dependencies are installed with the system's default interpreter.
Specifying
Python_EXECUTABLE=/usr/bin/python3
should make ROS 2 use the system default interpreter even if a newer version is available.RHEL 8: RHEL 9: