I am using Ubuntu 16.04 LTS . I have python3 installed. There are two versions installed, python 3.4.3 and python 3.6 . Whenever I use python3 command, it takes python 3.4.3 by default. I want to use python 3.6 with python3.
python3 --version shows version 3.4.3
I am installing ansible which supports version > 3.5 . So, whenever, I type ansible in the terminal, it throws error because of python 3.4
sudo update-alternatives --config python3
update-alternatives: error: no alternatives for python3
sudo update-alternatives --config python3say? – Mikael Kjær Dec 13 '17 at 09:35sudo apt install python-is-python3– Slion Aug 31 '21 at 18:18python3="python3.6"to ~/.bash_profile – goonerify Oct 08 '21 at 11:19