Can't install module tk for python

I am trying to write a tkinter app but when i import

from tkinter import *` id

i get

import _tkinter # If this fails your Python may not be configured for Tk

I searched in google and tried to install tk via pacman -S tk, it found some package but when i typed Y to install, it returned this

error: failed retrieving file ‘tk-8.6.10-2-x86_64.pkg.tar.zst’ from : The >requested URL returned error: 404

does this mean the error is in the AUR or am I doing something wrong?

1 Like

You probably haven’t updated your system in a while. The tk version currently in the repo is

Try this… :arrow_down:

sudo pacman-mirrors -f 5 && sudo pacman -Syyu tk

yes that worked thank you, it messed with my virtualenv and what not but i reinstalled it and it works now

1 Like

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