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 python3
say?sudo apt install python-is-python3
python3="python3.6"
to ~/.bash_profile