Installing janus on Google Colab

Hi everyone,
I’m trying to install janus_swi in Google Colab throught

!pip install janus_swi

but I get the error:

error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1

Does anyone know how to fix it?

Can you get some more details? A possible cause is that this pip package does not install SWI-Prolog itself. That must be installed and swipl must be in PATH. The pip installer uses that to figure out the SWI-Prolog location and components. You also need a C compiler installed.

If anyone knows how to improve on this, please share.

Thank you very much,
yes, that was the problem!
I now write all the code required if anyone will have the same issue:

install swi-prolog

!apt-add-repository --yes ppa:swi-prolog/stable

!apt-get update

!apt-get install swi-prolog

then install and import janus

!pip install janus_swi

import janus_swi as janus