Исправить Importerror: нет модуля с именем PIL
pip install --upgrade --force-reinstall Pillow
pip install --upgrade --force-reinstall matplotlib
Gorgeous Gazelle
pip install --upgrade --force-reinstall Pillow
pip install --upgrade --force-reinstall matplotlib
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade Pillow