Patroni is coded using Python. Considering the fact that Python 2 is obsolete, it may be tricky to get Patroni installed using Python3 unless the dependencies are known. This recipe should help us understand the steps involved in installing Patroni using Python3.
Getting ready...
To complete this recipe, we must make sure that our servers can connect to the repositories that have Python3 and other dependent modules for installing Patroni. These steps assume that python3 and pip3 are installed.
How to do it...
Follow these steps to set up Patroni:
- Install the necessary Python dependencies so that you can install Patroni:
CentOS 8.x
# dnf install python3-devel -y
OR
CentOS 7.x
# yum install python3-devel -y
- Install the gcc compiler to compile Patroni:
CentOS 8.x
# dnf install gcc -y
Or
CentOS 7.x
# yum install gcc -y
- Install the psycopg2 module for PostgreSQL to solve the dependency with Patroni:
CentOS 8.x
# dnf install python3...