How to pip or easy_install tkinter on Windows
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:
% C:\python32\python
This should give you the Python command prompt. From the prompt, enter these two commands:
>>> import tkinter
>>> tkinter._test()
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.
no module named 'Tkinter' on windows
You need to check the option tcl/tk and IDLE
when installing Python on Windows. Retroactive installation through pip
doesn't work.
Install tkinter for Python
It is not very easy to install Tkinter locally to use with system-provided Python. You may build it from sources, but this is usually not the best idea with a binary package-based distro you're apparently running.
It's safer to apt-get install python-tk
on your machine(s).
(Works on Debian-derived distributions like for Ubuntu; refer to your package manager and package list on other distributions.)
How to make python3 use my pip dependency of tkinter instead of yum tkinter
Why is 'pip install tk' not being recognized as a valid installation of tkinter but 'sudo yum install python3-tkinter' works?
Because pip install tk
installs an old package called tensorkit, not tkinter. You can't install tkinter with pip.
Related Topics
Why Is Pip Installing an Old Version of My Package
Python - Using the Multiply Operator to Create Copies of Objects in Lists
Pandas: Change Data Type of Series to String
How to Force/Ensure Class Attributes Are a Specific Type
Segmenting License Plate Characters
Populate a Pandas Sparsedataframe from a Scipy Sparse Matrix
Ioerror: [Errno 22] Invalid Mode ('R') or Filename: 'C:\\Python27\Test.Txt'
Python Regular Expression Pattern * Is Not Working as Expected
Value Error Trying to Install Python for Windows Extensions
Beautiful Soup 4 Find_All Don't Find Links That Beautiful Soup 3 Finds
Nameerror: Global Name 'Xrange' Is Not Defined in Python 3
Difference(S) Between Merge() and Concat() in Pandas
Pygame Tic Tak Toe Logic? How Would I Do It
Finding Moving Average from Data Points in Python
Shift Elements in a Numpy Array
How to Efficiently Process a Numpy Array in Blocks Similar to Matlab's Blkproc (Blockproc) Function