I am desperately trying to make tkinter work on my EC2 instance.
I just want to be able to execute this line in python:
from tkinter import *
or this one for older version as from what I understood before python 3.x you had to use a capital T
from Tkinter import *
Right now both these commands return this:
ImportError: No module named _Tkinter
Here are the steps I took and what I found in my research:
The python version currently running on my instance is python 2.6.8, thinking that tkinter might not come with this version I decided to install python version to 3.2 (keeping 2.6.8) using this http://www.hosting.com/support/linux/installing-python-3-on-centosredhat-5x-from-source/
Then running python 3.2 I ran in the same problem it tells me no module called tkinter.
I then tried to install tkinter using a lot of different commands:
yum install tkinter
yum install Tkinter
yum install python-tk
yum install python3-tk
yum install tk-devel
yum install gtk2-devel
yum install pygtk2-devel
All of these give me the same result:
No package (name of the package) available.
Also in my python 3.2 folder in /opt (the second one I have installed) there is a folder called tkinter but it still seems that somehow python3 does not see it.
What am I missing? Whys can't I import tkinter when I am in python?