In order to upgrade the python version it is necessary to remove the current version from the server.
You can find the installed python version in the following path
Remove all the versions including odoo.
The odoo_release should also be removed since it depends on python’s version.
It is under the path
Here the example commands, using -rf in order to force delete all the content of the folders:
rm -rf 3.7.13/ odoo/
rm -rf odoo_220.127.116.11_2022-04-04.tar.gz
This procedure should be made manually until we integrate it to odoo-role.