DeepProbLog can easily be installed using the following command: Make sure the required packages are installed:
pip install deepproblog
To make sure your installation works, install pytest
pip install pytest
and run
python -m deepproblog test
DeepProbLog has the following requirements:
Python > 3.9
[ProbLog](https://dtai.cs.kuleuven.be/problog/)
[PyTorch](https://pytorch.org/)
[TorchVision](https://pytorch.org/vision/stable/index.html)
To use Approximate Inference, we have the followign additional requirements
[PySwip](https://github.com/ML-KULeuven/pyswip)
pip install git+https://github.com/ML-KULeuven/pyswip
[SWI-Prolog < 9.0.0](https://www.swi-prolog.org/)
The latter can be installed on Ubuntu with the following commands:
sudo apt-add-repository ppa:swi-prolog/stable
sudo apt install swi-prolog=8.4* swi-prolog-nox=8.4* swi-prolog-x=8.4*