Change Python to Python3 in Linux | Set default python version to Python3

preview_player
Показать описание
The 'python' program command executes Python 2. Python 3 should be executed using the python3 command, but python3 can be executed by using the command 'python'. You can learn "How can Python 3 be executed using the python command?"

How to set python3 as default interpreter?
We will alias python to python3 to set python3 as default interpreter.

You will be able to:
1. Set 'python' program command execute Python3
2. Set cls to clear screen in Linux (Kali Linux, Ubuntu, Fedora, Debian)
3. Set pip3 as default pip installer ('pip' program command execute pip3)

Do these before running codes:
1. Install gedit by typing (sudo apt install gedit) in terminal

Intro: (0:00)
Sample of running python3 on python command: (0:14)
Also sample of cls clearing Linux terminal: (0:58)
Setting python3 as default interpreter: (1:23)
Executing python3 with python command: (2:16)

#python #python3 #pythondefault #coding

Top Search Queries (For Video Maker):
Set python default version
Set python3 as default
alias python to python3
Python3 as default in Linux, Ubuntu, Kali Linux
How to make 'python' program command execute Python 3 in Linux?
How to safely switch to python3 as default?
How to set python 3 as a default interpreter in Linux?
How to set python 3 as a default interpreter in Kali Linux?
How to make 'python' program command execute Python 3 in Kali Linux?
How to make 'python' program command execute Python 3 in Ubuntu?
How to make another version of Python the default in Linux?
Set Default Python Version in Ubuntu(Linux)
How to Setup the default Python version 3
How to Configure Python 3.6 as Default Interpreter on Ubuntu 20.04 LTS?
How To Set Python3 As Default In Linux Instead of Python2
How to Install Python 3.7 and make default in Ubuntu 20.04 LTS
Рекомендации по теме
Комментарии
Автор

You made a bug while giving alias any value it should be enclosed inside a string eg: (alias python='python3' instead alias python=python3) However thanks it helped!

ChandanKumar-ofje
Автор

Finally I can set default python version to Python3. Thanks yrr

codiecodes
Автор

Everybody🙋🏽‍♂️! The tutorial starts from here: (1:23)
Note: If you don't have gedit, you can install it with: sudo apt install gedit, or sudo yum install gedit.

DevBishwasBh
Автор

i cant to change the python i need your help bro

blackjuk
Автор

Bro please help me In 2021 Kali Linux it is not working

codingmastery
Автор

i am still not able change to python 3

upadeshshahi
Автор

sudo apt-get install python-is-python3
Above is the one line command and it works.
Thansks Bro. ❤❤🖤🤍

One.Stop.Backchodi