Category Archives: Python

Ubuntu 20.04 Command ‘python’ not found

Canonical decided to move to python 3 for Ubuntu 20.04, which is great, you can start it with the command python3.

However there is programs that look for /usr/bin/python and this is not a binary found on the server.

So how do you solve this little problem? The idea behind that is that you might need either python 2 or python 3 for your programs so you can install either of them to be the default one, with two respective packages called:

python-is-python3 and python-is-python2

If you try to just install python, what will install python2 and python-is-python2, so your default python interpreter will use python 2.

Another not so elegant solution is to just link python to python3 like this:

ln -fs /usr/bin/python3 /usr/bin/python