How can I add the tkinter to the pyproject.toml in poetry?

Viewed 377
  File "project.py", line 5, in <module>
    from tkinter.filedialog import askopenfilenames
ModuleNotFoundError: No module named 'tkinter'

This is always happens when I want to run my project with poetry run python project.py but if I run natively it's working flawlessly. So I guess the problem is to add the Tkinter to the .toml file but when I add tk to the dependencies it's not working properly. What should I do?

0 Answers
Related