我试图用Python制作我的第一个Tkinter项目,但它只向我展示了这一点:
>>> from tkinter import *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.11/tkinter/__init__.py", line 38, in <module>
import _tkinter # If this fails your Python may not be configured for Tk
^^^^^^^^^^^^^^^
ImportError: libtk8.6.so: cannot open shared object file: No such file or directory
我正在使用Arch.
我试了pip install tkinter
次,但没用.
请帮帮忙