How can I update Python?

I’m deploying a Discord bot using Python and the Python version is 3.7.10. The package that I am using for the bot needs Python 3.8.6. How can I update Python?

Oops didn’t read the docs.