How Do I Make Python 3 6 Default Ubuntu?
Contents

How do I make python3 6 default Ubuntu?

6. Just add this line in the file ~/. bashrc : alias python3=”python3. 6″ , then close your terminal and open a new one.

How do I make python3 6 default?

You need to update your update-alternatives , then you will be able to set your default python version. Set python3. 6 as default. Done.
…
Using these commands can help you:

  1. check the version of python: ls /usr/bin/python*
  2. alias: alias python=’/usr/bin/pythonxx’ (add this to . …
  3. re-login or source .
James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest