Building data-driven web apps with Pyramid and SQLAlchemy Transcripts
Chapter: Setup
Lecture: Do you have Python 3? How do you get it?

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