Gclient: line 22: exec: python: not found

I’m trying to build the android app in Android studio and I’m running Ubuntu 20.04, so I’m following the Linux Development Environment guide here: Linux Development Environment, however, I run into the error listed in the title, followed by serious of other npm errors.

How can I fix this error?

Duplicate /Android/Projects/brave-browser/vendor/depot_tools/gclient: line 22: exec: python: not found