Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Introduction

How do I install the module?

I cannot seem to find a version for mac, and it says they discontinued it. How did you install it Kenneth?

4 Answers

Max Hirsh
Max Hirsh
16,773 Points

If you mean TKinter, I think it's already installed with python and is sort of python's default GUI generating module

oh is it only in python 3, because with python2, when I try to import tkinter, it says no module named tkinter

Max Hirsh
Max Hirsh
16,773 Points

Oh, ok that's a great question actually. I just tested it in my command line and it looks like in python3, tkinter can be accessed with all lowercase letters as "import tkinter". However, in python2, tkinter is referenced with an upper case first letter, "import Tkinter". Hope this helps you get tkinter working!

thanks bruh...

´sudo apt-get install python-tk´

From what I've heard, 'sudo' should be used only as a last resort. I'm using python2 on a Mac; is there a way to get tkinter with python2? Using the uppercase didn't seem to work: "pip install Tkinter"

UPDATE:

I came across Kenneth's tutorial on Virtualenv where he explains how to set up a Python environment on a Mac. He also shows how to install python3. After doing this, I was able to continue with the Tkinter tutorial, but only with changing 'tkinter' to 'Tkinter.' Everything else works. Thanks!

Jason Edwardes
Jason Edwardes
1,251 Points

running python3 i got an error with a link the link was on line 36, asking me to install python3-tk package

so i opened the terminal (in Linux mint 64 bit)

entered ' sudo apt-get install python3-tk ' update the system 'sudo apt-get install update' ( its good to update every time you install any software)

how to install Pycharm (community) on mint

  1. download Pycharm from 'www.jetbrains.com' 2 open package with archive manager and open the file 3 open the bin file 4 click on Pycharm.sh 5 the program will start to install the program, easy to follow 6 when you go to set up your first project there a link at the bottom, so you can set up a desktop shortcut restart the computer and u will see programing link under menu /all applications /p