menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

Why python...
source image

Self-Learning-Java

7d

read

365

img
dot

Why python3 Works but python Doesn’t (And How to Fix It)

  • Running 'python' in the terminal used to start Python 2, the older version which is now outdated.
  • Python 3 was introduced with changes that weren't fully compatible with Python 2, leading to separate installation commands, 'python' for Python 2 and 'python3' for Python 3.
  • Due to Python 2 being discontinued, many modern systems only install Python 3 by default, but don't set up 'python' as a shortcut.
  • To make 'python' run Python 3, you can create an alias in the shell configuration file as 'alias python=python3'.

Read Full Article

like

21 Likes

For uninterrupted reading, download the app