btaamazon.blogg.se

How to use python on a mac
How to use python on a mac













Let's click on continue to walk our way through the wizard. Once it's finished downloading, you can go ahead and double click the file to open it up. And since this is newer than what we have installed on our Mac, let's go ahead and download it. In this case, Python three dot seven dot three is the latest version. Here, you can see the latest version of Python that's available for your operating system.

how to use python on a mac

If for some reason you don't see the version of Python that's installed, or you're not sure if you're running the latest version of Python, you can head over to /downloads. We can do this by typing exit, and then a open and closed parentheses and hitting Enter. But for now, we're just going to go ahead and exit. This is letting us know that the computer is ready for us to send it some Python instructions. This is denoted by the three angle brackets.

how to use python on a mac

Notice how we're inside of the Python prompt. At the time of this recording, we have Python two dot seven dot ten installed. By increasing the version number, the developers of the language are communicating that they've changed something and it could impact how you use the language. Programming languages have version numbers associated with them, because over time, new features are added. Instead, it's referring to displaying the result of a command on your screen. Now, typically, when we say print out in programming, we don't mean go grab a piece of paper from the printer. The first thing you notice is that it prints out the version of Python that we're running on the machine. Let me go ahead and zoom in a bit so you can see what I'm doing. To do that, we're going to type Python, all in lowercase letters, and then hit Enter.

how to use python on a mac

From here, we can check what version of Python we have installed. Let's go ahead and close down our Finder window. You can also do this with a shortcut by typing command + space, and then spelling out terminal and hitting Enter. To open up Terminal, we're going to go to our Finder, then applications. Terminal is an application that lets you run commands to explore directories, execute scripts, and yes, work with Python. To check what version of Python is installed, we're going to open a Terminal window. If you're using Windows, please skip to the next video, as I'll walk you through how to get set up. The Mac operating system ships with the version of Python already installed. If you're using a Mac computer, getting Python setup is very easy.















How to use python on a mac