How to install tkinter in pycharm

+1 vote
I am trying to install tkinter in pycharm but I am not able to find the module. I went to settings, project interpreter. Searched for “tkinter”,”Tkinter”, and “python-tk” but couldn’t find it. Can someone tell me how to install tkinter in pycharm?
Apr 3, 2019 in Python by Raj
Thanks very much

4 answers to this question.

+1 vote
Ya, this is a problem with installing tkinter on pycharm. You don’t have a tkinter module like you use while using pip. To install tkinter in Pycharm, install the module “future” and restart pycharm. Tkinter will be imported.
answered Apr 3, 2019 by Jishan

Hi, @Rais,

To install the latest stable version, type:

pip install future

I hope this works.


I installed "future" module in pycharm. To access tkinter use:

from future.moves import tkinter

If it don't work for you, search where tkinter lies in "future" package using cmd:

$ find . -name "*tkinter*"

and import accordingly.

Hi, @Ritesh,

You can try this to install the future module. Future is a module that aids in conversion between Python 2 and 3

pip3 install future


pip install -U future 
i had install future module but i'm not getting the new window and there is also no error. Can someone help me..
Hi, @Nitesh

Please post your workaround here. Which code you are executing? Which python version you are working with?
0 votes
from random import randint
from time import sleep
def gentree():
    for x in range(1.30,2):
        if x==1:
        elif md1%4==0:
        elif md1%3==0:
answered Dec 17, 2019 by anonymous
can you please explain this code? How is it related to installing tkinter in pycharm?
0 votes

In your PyCharm project, go to File > Settings > Project > Project Interpreter. If you used virtualenvwrapper or PyCharm to create the env, then it should show up in the menu. If not, click the gear, choose Add Local, and locate the Python binary in the env. PyCharm will display all the packages in the selected env.

Tkinter is installed by default. If python or Tkinter is not installed, install Python 2.7 from Tkinter is installed by default. Test by typing python at the terminal and then import Tkinter.

answered Dec 15, 2020 by Gitika
• 65,950 points
0 votes

Make sure you use the right import statement for your version of Python.

Python 2.7

from Tkinter import *

For Python 3.x

from tkinter import *
answered Dec 15, 2020 by Roshni
• 10,480 points

Related Questions In Python

0 votes
1 answer

How to install modules in Pycharm?

You can install modules in PyCharm using ...READ MORE

answered May 30, 2019 in Python by Shabnam
• 930 points
0 votes
1 answer

How to install Tensorflow in pycharm ?

For installing TensorFlow your system must be ...READ MORE

answered Jun 23, 2020 in Python by Varsha Kumari
+2 votes
1 answer

How to install pip in windows?

Step 1:  Open the following link and go to ...READ MORE

answered Nov 27, 2018 in Python by Priyaj
• 58,140 points
0 votes
1 answer

How to install OpenCV for python3 in Ubuntu?

I found this: OpenCV on wheels 'Unofficial OpenCV packages ...READ MORE

answered Nov 28, 2018 in Python by Nymeria
• 3,520 points
+1 vote
1 answer

Error loading package

You can try doing the following : go ...READ MORE

answered Jan 9, 2019 in Python by ana1504.k
• 7,910 points
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 2,360 views
0 votes
0 answers
0 votes
1 answer

How to print just one column in pandas?

You can use the header to print ...READ MORE

answered Apr 3, 2019 in Python by TIna
0 votes
5 answers

How to read Pandas csv file with no header?

Use this logic, if header is present ...READ MORE

answered Mar 14, 2020 in Python by Shahabuddin
• 160 points