Hi everyone,
I’m facing an issue with importing tkinter
(or possibly turtle
) within PyCharm. When I attempt to use these modules, I receive the following error:
ModuleNotFoundError: No module named '_tkinter'
Here’s what I’ve tried so far:
- Installation: I’ve installed
tkinter
using the commandsudo pacman -S tk
in normal Terminal - Running from Terminal: Interestingly, the code executes without errors when I run it directly from the terminal.
Environment:
- Operating System: Manjaro
- Python Version: 3.11.8
- PyCharm Version: PyCharm 2023.3.4 (Professional Edition)
Has anyone encountered this issue before? I’d appreciate any insights or suggestions on how to resolve it and successfully use tkinter
or turtle
within PyCharm.
Thanks!