How to Install Tkinter

Tkinter (Tk) is a Python default GUI and comes with the Python installation on Linux, Mac, and Windows. Since Tk comes with most Python installations, you don't generally need to install it yourself. Since Python 2 and Python 3 vary so...

Method 1 of 3:

Installing on macOS

  1. Picture 1 of How to Install Tkinter
    Go to https://www.activestate.com/products/activetcl/tcl-tk-modules. Active State provides the community with free downloads.
  2. Picture 2 of How to Install Tkinter
    Download the free community edition of ActiveTcl 8.6. You may be prompted to create a free account to download. You'll just need to provide your email and create a password to continue.
  3. Picture 3 of How to Install Tkinter
    Run the installer. You'll need to unpack the file from the download folder before running it. Just drag and drop the application into the Applications folder. When you're done, you'll have an application called 'Wish 8.6' inside the Utilities folder of your Applications folder.
  4. Picture 4 of How to Install Tkinter
    Launch Wish 8.6. You'll see 2 windows open. One is titled 'Console' and the other is titled 'Wish.' You can type commands in 'Console.'
  5. Picture 5 of How to Install Tkinter
    Type % info patchlevel and press Return. You should see something like '8.6.9.' This shows the currently installed version.
Method 2 of 3:

Installing on Windows

  1. Picture 6 of How to Install Tkinter
    Go to https://www.activestate.com/products/activetcl/tcl-tk-modules. Active State provides the community with free downloads, but it also sells programming tools to companies.
  2. Picture 7 of How to Install Tkinter
    Download the free community edition of ActiveTcl 8.6. You may be prompted to create a free account to download. You'll just need to provide your email and create a password to continue.
  3. Picture 8 of How to Install Tkinter
    Run the installer. You'll normally find it in your Downloads folder. When you're done, you'll have a TCL install in C:TCL if you didn't change the default location.
  4. Picture 9 of How to Install Tkinter
    Open Command Prompt. You can do this by searching 'Cmd' in the Start Menu's search bar.
  5. Picture 10 of How to Install Tkinter
    Run Wish. The command to start it depends on where you installed Wish.
    1. For example, if you used the default location when you downloaded ActiveTcl from the site, type % C:Tclbinwish86. Two windows will open. One is titled 'Console' and the other is titled 'Wish.'
  6. Picture 11 of How to Install Tkinter
    Type % info patchlevel and press Enter. You should see something like '8.6.9," which is the current installed and running version.
Method 3 of 3:

Installing on Linux

  1. Picture 12 of How to Install Tkinter
    Go to https://www.activestate.com/products/activetcl/tcl-tk-modules/. Active State provides the community with free downloads, but it also sells programming tools to companies.
  2. Picture 13 of How to Install Tkinter
    Download the free community edition of ActiveTcl 8.6. You may be prompted to create a free account to download. You'll just need to provide your email and create a password to continue.
  3. Picture 14 of How to Install Tkinter
    Run the installer. You'll need to unpack the file from the download folder before running it. Just drag and drop the application into the Applications folder.
  4. Picture 15 of How to Install Tkinter
    Press Ctrl+Alt+T to open a Terminal window.
  5. Picture 16 of How to Install Tkinter
    Type % /opt/ActiveTcl-8.5/bin/wish8.6 to run Wish. A window will pop up titled 'Wish 8.6.'
  6. Picture 17 of How to Install Tkinter
    Type % info patchlevel and press Enter. This is to check the version of Wish you are running.[1]
Update 05 March 2020
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile