Python turtle module is not appearing

I installed python tkinter(turtle module) with sudo pacman -S tkinter
But, the Tkinter is not appear when I try to run .py file that included with “import turtle as t”

Can someone tell me about this problem? Thank you.

turtle is bundled with python.

[lain@wired ~]$ pacman -F turtle.py
core/python 3.11.8-1 [installed: 3.12.4-1]
    usr/lib/python3.11/turtle.py

What error do you see?

Also, there is no package by the name tkinter

[lain@wired ~]$ sudo pacman -S tkinter
[sudo] password for lain:
error: target not found: tkinter

Did you mean tk?

https://archlinux.org/packages/extra/x86_64/tk/

Did you mean tk ?

Yes. I mean tk.

And also I’ll show the error code when I enter pacman -F turtle.py

WARNING: database file for ‘endeavouros’ does not exist (use ‘-Fy’ to download)
WARNING: database file for ‘core’ does not exist (use ‘-Fy’ to download)
WARNING: database file for ‘extra’ does not exist (use ‘-Fy’ to download)
WARNING: database file for ‘multilib’ does not exist (use ‘-Fy’ to download)

I think I can solve this problem if this error code is correct.

Pardon me for not being clear.

I meant, the error when you run your program with turtle :point_down:

The error upon running this.

This is what happening in my EndeavourOS Python.
I’ll show a video for you. Please check it.

There doesn’t seem to be any issue with python as such. The code is executing and exiting. Sorry, I’m not versed with this library and can’t help with the code itself. Maybe, try reaching out to the person you got this code from.

1 Like

I think, I need to use some program to run that tk.
Thanks for answer my question. Have a good day.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.