Modern APIs with FastAPI and Python Transcripts
Chapter: Setup and following along
Lecture: Python version
0:00 In this short little section, what we're gonna do is talk about what you need to get your machine set up to follow along.
0:06 And throughout this course, I strongly encourage you to build the application you see being
0:11 built during the course and to play around with slight variations of that. In order to do that, you're gonna need a few things set up on your
0:18 system. First of all, would it surprise you to know that you need Python to build a Python Web framework, or build apps with the Python Web framework?
0:26 Of course not. But specifically, you're going to need at least Python 3.6, so if you have something less than 3.6 it's just not going to run.
0:35 FastAPI has a minimum Python requirement of Python 3.6 and honestly,
0:39 the newer the better. This course, we're gonna be using Python 3.9 throughout the course. You might wonder, well, I think I have Python, but not sure,
0:48 do I? You can check on Linux and Mac OS. You can type "Python3 -V" and get Python 3.8, 3.9, hopefully something new. If that's
0:58 below 3.6 or it doesn't come back with anything, You gotta get Python. Over on windows,
1:04 It's a little more complicated because sometimes there's a Python and Python3 command,
1:08 sometimes there's just a Python command. Python is your best bet, so type "Python -V"
1:14 and if you get output that says "Python like Python 3.8, 3.9", you're good to go. But if you run this and you get no output and yet it doesn't crash,
1:24 that means that Python is not actually installed. There's this shim that Microsoft has put into Windows that if you just type Python alone
1:31 it will launch the installer to go find it on the Windows store and potentially
1:35 install it. But they've made this oversight where if you pass command line arguments to it, all it does is nothing,
1:41 doesn't launch the installer, doesn't say I'm not really Python, It doesn't give a version. So be really careful.
1:46 If it does nothing, you don't actually have Python. But if it gives you some output like this, you're good to go. Finally,
1:53 if you need help installing Python, check out "realPython.com/installing-Python"
1:58 they've got a guide that they're keeping up to date over there. Personally,
2:02 On Mac OS, I use Homebrew to install Python 3, 3.9 currently, and then on Windows
2:08 I use chocolatey, but you can use whatever systems you want or whatever mechanisms,
2:12 There's actually a lot of ways to do so, so check it out of here at "realPython.com/installing-Python"