As another option that uses Oracle Linux yum server, see this document about Python for Oracle Linux:
If you are OK with using a newer version of Python than the system version: on Oracle Linux 7 you have the option to use newer releases of Python from EPEL (as Andris points out). On OL6 you can use the Software Collection Library. For example:
$ sudo yum -y install yum-utils$ sudo yum-config-manager --enable ol6_software_collections$ sudo yum install -y rh-python36 scl-utils$ # become root$ sudo su -# scl enable rh-python36 bash# python -m pip install Flask# # first exit out of SCL environment, then out of root# exit# exit$ # should be able to use the flask module now$ scl enable rh-python36 bash$ pythonPython 3.6.3 (default, Feb 12 2018, 20:00:49) [GCC 4.4.7 20120313 (Red Hat 4.4.7-18)] on linuxType "help", "copyright", "credits" or "license" for more information.>>> import flask>>> quit()