Search code examples
python-3.xlinuxpostgresqlrhel8

Is there any library other than pyscopg2 that can be used to fetch the data from postgres db using python script?


I have a requirement in the project which needs pandas, sqlalchemy and psycopg2 libraries. These are available in pypi.org but due to corporate compliance, I have to use only RHEL8. In RHEL8, I can find pandas, sqlalchemy but I couldn't find psycopg2. Is there any other library that I can use to fetch the data from postgres DB ?


Solution

  • psycopg2 runs on RHEL8.

    Installation:

    sudo yum install python-pip
    sudo pip install psycopg2