Building Data-Driven Web Apps with Pyramid and SQLAlchemy Transcripts
Lecture: Do you have Python 3? How do you get it?
0:00 I'm sure you're ready to get in and start learning about Pyramid and building the web apps right away but before we do, let's just take a quick moment
0:09 and make sure you have everything you need to follow along and write and run these programs. Obviously, you're going to need Python, right?
0:16 This is a Python course and in fact we're going to use Python 3. Python 2 will go unsupported in less than two years from now
0:25 so of course we're using Python 3. However, Python 3 doesn't come on all the systems. Let's see if you have Python.
0:31 How do you know whether you have Python? Well, you can go to your terminal on a Mac or on Linux and type Python3 -V
0:40 and it'll tell you either no there is no Python 3 or it'll tell you what version. When I ran this command it was 3.6
0:46 but actually 3.7 just came out so Python 3.7 is the latest. As long as you have 3.5 or later, you'll be fine. If you're on Windows this doesn't work.
0:55 It's a little frustrating but Python3 is not a command that comes installed with Python by default. How do you know what you have on Windows?
1:02 Well, you could type Python -V and that'll tell you what one of your installations is if it's in the path. It might be better to ask where Python
1:11 and it will show you all the different locations and then you can type Python -V and see which one. For example, on this Windows 10 machine
1:17 we have the Anaconda 3 Python which is Python 3 from the Anaconda distribution. We have Python 3.6 from Python.org, and 3.5 from Python.org
1:30 all in these random, different locations here. So you can adjust your path to target the one that you want but make sure when you type Python -V
1:38 you get something Python 3.5 or higher. Depending on your OS if you type this and everything works you're ready to take this class.
1:45 You have Python set up. But what if you don't? Maybe you need Python, maybe that didn't work. There actually a whole bunch of tradeoffs
1:54 and different ways to install Python. One way, if you're on Mac or Windows, is just go Python.org download the latest installer, and get it.
2:02 But I want to give you a little more guidance. Drop over at realPython.com/installing-Python and have a look there.
2:10 They have for each of the operating systems a couple of different ways. For example, for Mac OS, you might use Homebrew
2:15 to install and update the latest version of Python. Things like that. So go over here, see what they say for your OS.
2:22 They're going to keep maintaining this and updating it over time. So this is probably the best resource for installing Python if you need to do so.
2:29 Once you get Python set up you'll be ready to move on.