Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 458
goldenasian Avatar asked Jul 23 '26 04:07

goldenasian


1 Answers

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.

like image 195
Mies van der Lippe Avatar answered Jul 24 '26 19:07

Mies van der Lippe



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!