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
BashAlias
You can also add the following line at the end of your ~/.bashrc
file:
alias python='python3'
BashSave the file, and apply the changes running
source ~/.bashrc
Bash
Leave a Reply