how to install psyciog2 in a shared hosting `Cpanel` host

Viewed 21

how to install psycog2 in a shared hosting Cpanel host, as am running a Django application on this host and I need to connect to Postgres database am using python 3.7.12, I've tried normally install using pip install psycog2 and it failed, also tried to do pip install psycog2-binary and it failed too.

ERROR:

      It appears you are missing some prerequisite to build the package from source.

      You may install a binary package by installing 'psycopg2-binary' from PyPI.
      If you want to install psycopg2 from source, please install the packages
      required for the build and try again.

      For further information please check the 'doc/src/install.rst' file (also at
      <https://www.psycopg.org/docs/install.html>).

      error: command '/usr/bin/gcc' failed: Permission denied
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> psycopg2-binary

PLEASE NOTE THAT I DON'T HAVE SUDO PERMISSION ON THIS SERVER

0 Answers
Related