Sunday, February 27, 2022

[SOLVED] What is the difference between the python and python3 commands in unix-like systems?

Issue

I read through the descriptions of each command, but the descriptions for each command were exactly the same, so I didn't understand how those two commands work differently in Unix-like systems.

Could anyone explain the difference?


Solution

The Python3 command was introduced because the python command pointed to python2. Since then, Python3 has become the default and thus python points to python3 on most but not all systems. So, most developers explicitly use python2 and python3 as to not run into issues on other systems.



Answered By - Mies van der Lippe
Answer Checked By - Willingham (WPSolving Volunteer)