tkinter und matplotlib sind installiert und funktionieren auch:
Code: Alles auswählen
Python 3.10.6 (main, Nov 14 2022, 16:10:14) [GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
>>> import tkinter
>>>
Code: Alles auswählen
UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.
Code: Alles auswählen
matplotlib.use("TkAgg")
Code: Alles auswählen
File "/usr/local/lib/python3.10/dist-packages/matplotlib/backends/_backend_tk.py", line 14, in <module>
from PIL import Image, ImageTk
ImportError: cannot import name 'ImageTk' from 'PIL' (/usr/lib/python3/dist-packages/PIL/__init__.py)
Macht es eigentlich einen Unterschied aus, ob ich mit sudo apt install XXX oder sudo pip3 install XXX installieren?
LG