For CentOS and Red Hat Linux, you must install Python 3.
- Update all currently installed packages by running the yum update command.
sudo yum update
- To install Python 3, run the
sudo dnf install python3
- (Optional) To verify that you are using Python 3, run the the python3 -V command.
python3 -V Python 3.6.8
- (Optional) Take a snapshot of your virtual machine.