I can not identify the right solution. What version of Odoo are you running? What component do you want to update?
Latest version (12.0.20181218-0) ships Python 3.7.1, gevent 1.3.7 and 2.11.1. If, for example, you want to upgrade requests, you can execute:
sudo /opt/bitnami/python/bin/pip install --upgrade requests
I hope it helps,
Happy New Year