In Ubuntu 24.04, the python command is not available by default, as the system uses python3 for Python 3.x versions.

Package: python-is-python3

The easiest way to fix this is to install the package python-is-python3.

sudo apt install python-is-python3
Bash

Alias

You can also add the following line at the end of your ~/.bashrc file:

alias python='python3'
Bash

Save the file, and apply the changes running

source ~/.bashrc
Bash


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *