[SOLVED] Python install tkinter

i have a home grown program, i’d like to run and i need to install and run tkinter .
i installed pip and pip install tkinter but doesn’t install .

Tkinter is part of pythons standard library. You don’t need to install it, just import the modules required.

See here for more information.

1 Like
python /home/klein/.my_tools/python_log/daily_log_file.py
Traceback (most recent call last):
  File "/home/klein/.my_tools/python_log/daily_log_file.py", line 4, in <module>
    from tkinter import *
  File "/usr/lib/python3.10/tkinter/__init__.py", line 37, 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 director

it is a running program on debian 11 ,

to install tkinter

sudo pacman -S tk
No module named 'pytz'
 import pytz

so do i use pip or sudo pacman -S pytz

sudo pacman -S pytz
error: target not found: pytz
pip install datetime
this is the winner