How to set default python in Ubuntu

Run command to select python

sudo update-alternatives --config python

If it gives an error, run the command

sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.5 1

Note- you can change the correct python version -  /usr/bin/python3.5 1
Share on Google Plus

About Md. Shahzad Alam

I am a passionate cloud and DevOps professional specializing in Linux and open-source solutions. Through this blog, I share my knowledge and experience with the community, offering tips and insights on cloud technologies and DevOps practices.
    Blogger Comment

0 comments:

Post a Comment