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 4, 2019 in Python by Raj
87,718 views
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 4, 2019 by Jishan
Thanks. Help me so much.
I installed "future" module in pycharm but still I get and error:  module not found:no module named tkinter
Was the "future" module successfully installed? I think it wasn't. Because ideally, installing that module should solve the problem.
something similar happended to me. i installed future and i saw it say that it was successfully installed. Then, i restarted pycharm. but still i found no tkinter module.
Hey,

Are you getting any error out of that?
but how to install the module future

Hi, @Rais,

To install the latest stable version, type:

pip install future

I hope this works.

Hi, 

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

or

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
md2=randint(1,30)
def gentree():
    print("\033c")
    for x in range(1.30,2):
        md1=randint(1,md2)
        if x==1:
            ch="$"
        elif md1%4==0:
            ch="0"
        elif md1%3==0:
            ch="i"
        else:
            ch="*"
        print("{i^33}".format_map(ch*x))
    print("{i^33}".format("|||"))
    print("{i^33}".format("|||"))
    sleep(.75)
answered Dec 18, 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 http://www.python.org. Tkinter is installed by default. Test by typing python at the terminal and then import Tkinter.

answered Dec 15, 2020 by Gitika
• 65,770 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
52,157 views
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
53,682 views
+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,020 points
5,244 views
0 votes
1 answer

How to install OpenCV for python3 in Ubuntu?

I found this: https://pypi.python.org/pypi/opencv-python OpenCV on wheels 'Unofficial OpenCV packages ...READ MORE

answered Nov 28, 2018 in Python by Nymeria
• 3,560 points
2,817 views
+1 vote
1 answer

Error loading package list:pypi.python.org

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

answered Jan 9, 2019 in Python by ana1504.k
• 7,910 points
10,953 views
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 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,441 views
0 votes
1 answer
0 votes
1 answer

How to print just one column in pandas?

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

answered Apr 4, 2019 in Python by TIna
10,823 views
+1 vote
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
230,551 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP