You have no choice here, you need to see the logs or a more verbose pip install
output.
Try the verbose pip option:
!pip install -vvv -r requirements.txt
At the end of that loooong error message, you'll see the actual problem:
Error: pg_config executable not found.
pg_config is required to build psycopg2 from source. Please add the directory
containing pg_config to the $PATH or specify the full executable path with the
option:
python setup.py build_ext --pg-config /path/to/pg_config build ...
or with the pg_config option in 'setup.cfg'.
If you prefer to avoid building psycopg2 from source, please install the PyPI
'psycopg2-binary' package instead.
For further information please check the 'doc/src/install.rst' file (also at
<http://initd.org/psycopg/docs/install.html>).
You need to install pg_config
.
This related post (pg_config executable not found) gives options how to do that based on the platform. Since Google Colab runs on a Linux/Ubuntu-based OS:
!apt install libpq-dev
Note the !
instead of %
.
Test it:
!pg_config --version
PostgreSQL 10.10 (Ubuntu 10.10-0ubuntu0.18.04.1)
Then repeat the installation:
%pip install -r requirements.txt
Google Colab will require you to restart the runtime after the installation completes. Do so. Then you may do the installation again just to confirm that "Requirement already satisfied:".
Do take note that while the installation succeeds, there are some warnings that that Django-Emotion-Classification-Ravdess-API may require packages (in requirements.txt) that are not compatible with Colab's pre-install libraries.