Software Requirements for using background removal
The Python version should be greater than or equal to 3.6
python 3.6-dev #or whatever version of python you using
Also, install torch and torchvision which you will be getting in the basic version of Python (https://pytorch.org)
Another extension will be installed, i.e., ffmpeg 4.4+
Follow the below steps to install Python:
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.6
sudo apt install ffmpeg python3.6-dev(To install ffmpeg and python-dev)
pip install --upgrade pip
pip install backgroundremover