It might not be possible to upgrade the version of python inside a Databricks cluster. Each cluster have a pre-defined configuration which consist of specific versions of Spark, Scala and Python.
We upgraded Databricks from 10.3 to 10.4 LTS. But the python version did not change from python 3.8.10
- This is because both Databricks 10.3 and 10.4 LTS have python version as
3.8.10.
One solution would have been to Edit the cluster to change to Databricks runtime which supports required configuration. To do this Navigate to compute -> click on your cluster -> edit and choose required databricks runtime.
But currently, the highest python version supported in Azure databricks is Python 3.9.5 by Databricks runtime 11.1. Refer to this Microsoft documentation to understand more about features and configurations of Databricks runtimes