Active10 days ago
- Tkinter Download For Windows 7
- Tkinter Python 3 Download For Windows
- Tkinter Download Windows 10 64 Bit
The standard GUI (Graphical User Interface) package is called Tkinter. By default, its included with the Microsoft Windows and Mac OS X install of Python. It is sometimes called “one of the minor traditions of the Python world”. Aug 05, 2018 On Windows, the easiest way to get Tcl/Tk onto your machine is to install the 'ActiveTcl' distribution from ActiveState, which includes Tcl, Tk, plus a number of other extension libraries. In your web browser, go to www.activestate.com, and follow along the links to download the Community Edition of ActiveTcl for Windows. Tkinter comes packaged with python install on windows IFF you select it during the install window. The solution is to repair the installation (via uninstall GUI is fine), and select to install tk this time. You may need to point at or redownload the binary in this process. Downloading directly. Apr 26, 2013 Download Visual Tkinter Python IDE for free. Visual Tkinter IDE for Python. Visual Python Tkinter IDE.
My Idle is throwing errors that and says
tkinter
can't be imported.Is there a simple way to install
tkinter
via pip
or easy_install
?There seem to be a lot of package names flying around for this...
This and other assorted variations with
tkinter-pypy
aren't working.I'm on Windows with Python 2.7 and can't
apt-get
.Thanks.
Mateusz Konieczny86511 gold badge1515 silver badges3737 bronze badges
Dirk CallowayDirk Calloway1,03133 gold badges1515 silver badges3030 bronze badges
13 Answers
Well i can see two solutions here:
1) Follow the Docs-Tkinter install for Python (for Windows):
Tkinter (and, since Python 3.1, ttk) are included with all standard Python distributions. It is important that you use a version of Python supporting Tk 8.5 or greater, and ttk. We recommend installing the 'ActivePython' distribution from ActiveState, which includes everything you'll need.
In your web browser, go to Activestate.com, and follow along the links to download the Community Edition of ActivePython for Windows. Make sure you're downloading a 3.1 or newer version, not a 2.x version.
Run the installer, and follow along. You'll end up with a fresh install of ActivePython, located in, e.g.
C:python32
. From a Windows command prompt, or the Start Menu's 'Run...' command, you should then be able to run a Python shell via:This should give you the Python command prompt. From the prompt, enter these two commands:
This should pop up a small window; the first line at the top of the window should say 'This is Tcl/Tk version 8.5'; make sure it is not 8.4!
2) Uninstall 64-bit Python and install 32 bit Python.
IAbstract15.8k1212 gold badges7272 silver badges124124 bronze badges
LotusUNSWLotusUNSW
The Tkinter library is built in with every Python installation. And since you are on windows, I believe you installed python through the binaries on their website?
if so, Then most probably you are typing the command wrong. It should be:
import Tkinter as tk
Note the capital T at the beginning of Tkinter.
For Python 3,
import tkinter as tk
Tkinter Download For Windows 7
IcyFlameIcyFlame2,5871212 gold badges3737 silver badges6565 bronze badges
If you are using virtualenv, it is fine to install tkinter using
sudo apt-get install python-tk
(python2), sudo apt-get install python3-tk
(python3), and and it will work fine in the virtual environmentKeithKeith
When you install python for Windows, use the standard option or install everything it asks. I got the error because I deselected tcl.
cn123hcn123h
When installing make sure that under
Tcl/Tk
you select Will be installed on hard drive
. If it is installing with a cross at the left then Tkinter will not be installed.The same goes for Python 3:
SimonSimon6,23666 gold badges3333 silver badges5252 bronze badges
Had the same problem in Linux. This solved it. (I'm on Debian 9 derived Bunsen Helium)
$ sudo apt-get install python3-tk
AAAfarmclubAAAfarmclub
I solved the same problem using these two commands 100%
javacjavac
In python Tkinter was default package ,repair at the time we can select the Tcl/Tk , in c directory the tkinter stored in C:Python27DLLs_tkinter.pyd on that place , reinstall otherwise directly put the (_tkinter.pyd)file into DLLsenter image description here
vinothbalan64 balanvinothbalan64 balan
I'm posting as the top answer requotes the documentation which I didn't find useful.
tkinter comes packaged with python install on windows IFF you select it during the install window.
The solution is to repair the installation (via uninstall GUI is fine), and select to install tk this time. You may need to point at or redownload the binary in this process. Downloading directly from activestate did not work for me.
This is a common problem people have on windows as it's easy to not want to install TCL/TK if you don't know what it is, but Matplotlib etc require it.
jabberwockyjabberwocky
on windows terminal , run command 'pip install tk'
Sparsh BansalSparsh Bansal
Tkinter Python 3 Download For Windows
QureshiQureshi
I had the similar problem with Win-8 and python-3.4 32 bit , I got it resolved by downloading same version from python.org .
Next step will be to hit the repair button and Install the Tk/tkinter Package or Just hit the repair.Now should get Python34/Lib/tkinter Module present.The import tkinter should work ..
sanchez_30sanchez_30
if your using python 3.4.1 just write this line
from tkinter import *
this will put everything in the module into the default namespace of your program. in fact instead of referring to say a button like tkinter.Button
you just type Button
kenethkeneth