Installing tkInter Python Package - How To

Hi I’m trying to install tkinter GUI for Python on my machine. I’m working in the Command Line Shell environment exclusively and I’m trying to get the tkinter Modules installed. I’m not exactly sure how to go about doing this, whether it is through YaST or not, but when I search for the package in YaST there are none found. I am VERY new to Linux and OpenSUSE and other than using YaST or zypper to install packages I’m not too clear on the steps involved. I’m not sure how to install the tkinter MODs or any Python MODS for that matter and any suggestions would be greatly appreciated. Thanks.

Hi
python-tk?


zypper in python-tk

You don’t say what version of openSUSE your running?

You can search for all the python modules via zypper se or zypper search <name>, then to install use zypper in or zypper install <name> as listed in the second column.

Tkinter is installed by the package python-tk.
Just open yast software management and search for tkinter (it searches by
default the package name and the package description).
From command line


su -
zypper in python-tk


PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.4 | GeForce
9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.4 | nVidia
ION | 3GB Ram

Thanks, “zypper in python-tk” worked fine. Appreciated :slight_smile: