set python 3 as default ubuntu

Do you want to know the information about “set python 3 as default ubuntu”. If yes, you’re in the correct post.

set python 3 as default ubuntu

sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.4 1
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.6 2
sudo update-alternatives --config python
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.7 1

Final Thoughts

I hope this post helps you to know about “set python 3 as default ubuntu”. If you have any queries regarding this article please let us know via the comment section. Share this article with your friends & family via social networks.

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coder Diksha. Here, I post about programming to help developers.

Share on:

Leave a Comment