Install Python package manager (PIP) (if not installed)
sudo apt install python3-pip
Next install Pillow using PIP
pip3 install Pillow
Hopefully PIL is now installed successfully on your system. You can also verify your installation by running the following python code
import PIL
IL.__version__