From the course: Functional Programming with Python

Installing Python

- [Instructor] We're going to start by installing all major, rephrase. We're going to start by installing all the major tools necessary for this course. Obviously, since this is a Python three course, you'll want to have the latest version of Python three installed. If you're on a Mac, your computer will already have Python two installed, but we need Python three for this course. If you don't already have Python three installed, then the easiest way to install it is using Homebrew, which is a really nice package manager for Mac OS. I use it for pretty much everything. If you don't have Homebrew installed, it's fairly easy to do so. First you'll need Apple's Xcode package installed. So if you don't have this installed already, you'll need to open up a terminal, and then run xcode-select--install and hit enter. I'm not going to do that because I already have it installed on my machine. And that'll take a little while to run, but once it's done, we can install Homebrew. To do that, just open up a browser, and go to brew.sh, and then about halfway down the page, you'll see this command here. Copy that command and paste it in your terminal window. And if you hit enter, which again, I'm not going to do because I already have it installed. It should run for a little while. And once the installation finishes, let's run brew doctor just to make sure everything installed correctly. And if it says something like your system is ready to brew, then we're ready to install Python three. And you can do this by simply typing brew install python3 and hitting enter. Now once you've done that, in order to make sure that you have the right version of Python three, you can type python3--version, and ideally the version that it displays, should be at least the version that I have here. So that's all there is to it if you're on a Mac. If you're using Windows or another Unix distribution, I recommend you follow the introductions on Python's website to get Python three installed on your computer. And you can find those instructions here at docs.python.org/3/using and then it contains instructions for Unix platforms or for Windows.

Contents