How can I install the TKinter in Pycharm



I made in the past one project with Pycharm. I did format at my laptop and i download again the pycharm and now i receive the message << error no module named tkinter>>. I try to install the library for tkinter but i can't find. What can i do?




pip install python-tk



The correct command in Terminal on Ubuntu 18.04.2 LTS seems to be 'sudo apt-get install python3-tk'!

The longer story:

I just installed PyCharm CE on Ubuntu 18.04.2 LTS.

When I tried to run my first program, I got this error:

"ModuleNotFoundError: No module named 'tkinter'"

But 'tkinter' is not on the list of 'Available Packages' that can be installed in File -> Settings -> Project -> Project Interpreter. There are 11 others, for instance 'tkinter3000' and 'EasyTkinter'.

Then I tried opening the Terminal and run 'pip install python-tk', but I got this error:

" Collecting python-tk
Could not find a version that satisfies the requirement python-tk (from versions: )
No matching distribution found for python-tk "

Then I searched for 'install TKinter in Pycharm' on, and got: .

Where I found the correct command 'sudo apt-get install python3-tk'.



Go to File -> Settings(ctrl + alt + s) -> Project Interpreter -> click on "+" -> Search for the Package name (Tkinter) -> Click on "Install Package".

Then you are good to go.


Tkinter is not there.


Tkinter should be bundled with the interpreter, but you may need to install it separately:


I have 2.7.16 and 3.6.0 on my Macbook and no Tkinter.



HI I have pycharm jb on windows and i am programing an aplication but I can't install Tkinker, but when i saw i was like "dam i am dumb" and I was like "something wrong is not right!" because it appears as "TkinterExtensions" to install... And to use is "import TkinterExtensions". Seems legit.


Happened to come and check after getting the same command Henrick suggested. It worked for me as well. Works with ubuntu 20.4 LTS as well