Here are some resources for more information about topics covered in this lesson:
Setting Up Python on macOS
00:00 In this video, you’re going to learn how to set up Python on macOS. You’ll learn where to download Python, how to install Python, and how to open the Integrated Development and Learning Environment, also known as IDLE.
00:48 At the time of this recording, that version is Python 3.9.4. Go ahead and click the button to download Python. Once the file has finished downloading, click on it at the bottom of your browser or use Finder to navigate to the Downloads folder and open it from there.
01:10 Once it opens, you’ll see the Python installation window. On the first screen, you’ll see information about the version of Python you’re installing. We’re installing Python 3.9.4 for macOS 10.9 or later.
01:27 Python for macOS consists of the Python programming language interpreter, as well as the integrated development environment, IDLE. Go ahead and click Continue. On the next screen, there’s some important information about certificate verification and OpenSSL, using IDLE and other Tk applications, as well as using Python on macOS 11.0 Big Sur and Apple Silicon Mac support. Don’t worry about any of this right now.
02:08 Otherwise, click Continue. Then you’ll need to agree to the license. Click Agree. The next screen tells you how much space Python will take on your computer and will allow you to change the install location if you prefer.
02:26 I recommend keeping the default installation location, so go ahead and click Install. You’ll have to give the installer permission to install on your computer, so go ahead and type in your Mac user password.
02:56 Once installation completes, you’ll see the Python application folder open in Finder. There are a couple of different ways to interact with Python. One is through something called a terminal on your computer.
03:08 The other is through the Integrated Development and Learning Environment, or IDLE. We’re going to use IDLE through this video course, so go ahead and double-click on the IDLE icon to open it up.
03:21 This opens up the IDLE shell window. At the top of the window, you can see the version of Python that’s running and some information about the operating system. Below that information are three red right angle brackets. These are called a prompt.
03:52 Now I’m going to show you how to open IDLE the next time you turn on your computer. There are two ways to do this. One is using Finder. The other is using the Spotlight search bar. To open IDLE with Finder, first, open up a new Finder window.
04:38 To open up IDLE using the Spotlight search bar, press the Command key and while holding it down, press Spacebar. Type in the word idle. I have multiple versions of Python installed on my computer, which is why you see three different IDLE options in the Spotlight search bar.
04:57 You might only see one. If you see multiple versions, make sure to select the one that says Python 3.9 or whatever version you downloaded. So, there you go! Now you know how to download and install Python and open up IDLE, Python’s Integrated Development and Learning Environment.
Become a Member to join the conversation.