change version python --version code example
Example 1: change default python version
sudo update-alternatives --config python
Example 2: pip change python version
pip upgrade -pip
sudo update-alternatives --config python
pip upgrade -pip