On 30/09/18 08:47, Alan Gauld via Tutor wrote:
On 30/09/18 02:22, Jorge Herrera wrote:
Hello, I'm new to Python and I've been having a frustrating time with
python because I'm trying to import tkinter and it's saying that tkinter is
not defined, that it doesn't exist

That suggests that Tkinter is not installed on your system.
What OS are you using?


It could be as simple as the spelling, it's Tkinter for Python 2 but tkinter for Python 3.

If it is Linux then its common that you have to install tkinter
separately from the basic python package. Its usually called
python-tkinter or somesuch in the package manager.
Be sure to match the version number with your Python version.

If its MacOS then the system python doesn't (or didn't last
time I tried)  come with tkinter so you need to download
the latest MacOS python installer and install it (Do not
uninstall the system version though - the OS needs it!)

On Windows tkinter should be present.

If the suggestions above don't work then come back to
us with more details:
- Your OS
- Your Python version
- A cut n' paste of the full error message that you get

HTH


--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to