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 IDLE

Mike Buenaventura
Mike Buenaventura
485 Points

Testing IDLE on my Mac.

Hello, I've just installed Python 3.14.7 on my macOS. When I open the IDLE on my Mac I typed python3 , hit enter, and it said:

Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> python3 NameError: name 'python3' is not defined

Is this test only relevant to the Treehouse workspace? I was watching the How to Install Python (macOS) with Rachel Johnson.

1 Answer

Travis Alstrand
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Travis Alstrand
Treehouse Teacher

Hey there Mike Buenaventura 👋

python3 is a command that would be entered in the macOS Terminal, not inside IDLE. You would use python3 when you want to start the Python interpreter or run a Python program using your installed Python 3 version.

So if you're already in IDLE, you don't need to type python3, because you're already running Python! 😃

You can test it by entering something like:

print("Hello, world!")