Encountering `ModuleNotFoundError: No module named '_tkinter'` in PyCharm (tkinter/turtle issue)

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:

  1. Installation: I’ve installed tkinter using the command sudo pacman -S tk in normal Terminal
  2. Running from Terminal: Interestingly, the code executes without errors when I run it directly from the terminal.


  • 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.


Sounds like you need to configure it to use the system’s python.

1 Like