I just cannot find any solution for this
no matter if I run the code in Jupyter or from the command line
even after installing Pillow
>pip install Pillow
Requirement already satisfied: Pillow in c:\users\phil\appdata\local\programs\python\python39\lib\site-packages (9.0.1)
>pip3 install Pillow
Requirement already satisfied: Pillow in c:\users\phil\appdata\local\programs\python\python39\lib\site-packages (9.0.1)
matplotlib keeps trying to use an obsolete plugin
>python test3.py
Traceback (most recent call last):
File "\test3.py", line 2, in <module>
import matplotlib.pyplot as plt
File "C:\Users\phil\AppData\Local\Programs\Python\Python39\lib\site-packages\matplotlib\__init__.py", line 113, in <module>
from . import _api, _version, cbook, _docstring, rcsetup
File "C:\Users\phil\AppData\Local\Programs\Python\Python39\lib\site-packages\matplotlib\rcsetup.py", line 27, in <module>
from matplotlib.colors import Colormap, is_color_like
File "C:\Users\phil\AppData\Local\Programs\Python\Python39\lib\site-packages\matplotlib\colors.py", line 51, in <module>
from PIL import Image
ModuleNotFoundError: No module named 'PIL'
workaround I had to edit matplotlibfiles to replace PIL by pi to make it work
- is there no other way around this ?
- is matplotlib deprecated ?
any help appreciated