use python 2.7 instead of 3 ubuntu code example
Example 1: linux ubuntu install python 3.7
sudo apt-get install python3.7
Example 2: install python 3.9 ubuntu
sudo apt-get install python3
sudo apt-get install python3.7
sudo apt-get install python3