Anvil: Web apps with nothing but Python Transcripts
Chapter: Setup and following along
Lecture: Python 3.6+ required (sorta)

Login or purchase this course to watch this video and the rest of the course contents.
0:00 The next thing you're going to need to install is Python
0:02 and it's important that you have Python 3.6 or higher.
0:06 The primary feature we may end up using from 3.6
0:09 or higher is f-strings
0:10 but there are other ones that we could
0:12 accidentally use as well.
0:14 Current version is 3.7, at the time of the recording
0:17 but 3.6 or above should be totally fine.
0:19 Now you may be thinking
0:20 "Michael, one of the big benefits of Anvil
0:23 is I can create these webapps in my browser.
0:26 I don't have to have an editor
0:28 or Python locally, or anything like that
0:30 so why do I need to install Python?"
0:33 Well, here's the thing, for Anvil, absolutely.
0:36 It runs up there in the Anvil cloud
0:39 you don't have to do anything
0:41 you just work with your editor
0:42 in your browser and you're golden.
0:44 However, during this course
0:46 we're going to look at some
0:47 of the more advanced features of Anvil
0:49 one of them being working with the http endpoints
0:53 that we can create in Anvil.
0:54 So we're going to write some client-side applications
0:57 that talk to our server-side Anvil code.
0:59 For that, you need Python 3.6.
1:02 If you don't want to do that particular part
1:03 you can actually skip installing Python
1:06 but I think Python's good, right?
1:08 So, you probably do want to follow along
1:10 but if you absolutely don't
1:11 and you don't mind skipping that section
1:13 then you can just stick with your web browser
1:14 and you'll be golden.
1:17 Let's assume you do want to have Python 3.6 or above
1:20 you might ask the question, "Do I have Python?"
1:22 If you're on MacOS or Linux
1:24 you can just type python3 -V and it'll tell you the version
1:28 or it'll tell you there's an error
1:29 and there's no Python 3.
1:31 So, assuming you don't get an error
1:33 you see the version, hopefully you've got the right one
1:35 if it's out of date, upgrade it.
1:37 If you don't have it at all, then you need to go install it.
1:41 If you're on Windows, you type either python -V
1:46 sometimes you can type python3 -V
1:49 depending on how you've installed it.
1:51 Most of the time the three doesn't work
1:53 but in the newer versions it does.
1:56 We'll talk about that more in just a second.
1:58 So, go to your terminal or your command prompt
1:59 see if you've got Python
2:01 if you've got 3.6 or above you're good.
2:04 If you happen to need to install it
2:05 I recommend you check out the guide
2:06 from my friends over at Real Python.
2:08 That's
2:11 they talk about how to set it up on Mac
2:14 on Windows, on Linux, and all those things
2:16 and one really new thing, if you're on Windows
2:21 and that Windows is the latest version of Windows 10
2:24 mid to late 2019, then you can actually
2:29 go to the Windows Store.
2:31 Go to the store app, store in your Windows, Windows Store
2:34 search for Python, you'll find Python 3.7 or 3.8
2:37 and you can install that.
2:38 That will give you probably the best
2:41 Python experience on Windows.
2:43 That little example of typing python3
2:45 that will work if you install it this way
2:47 but not if you install it from for example.
2:50 So if you're on Windows, this is a really great way.
2:52 It auto-updates within minor versions
2:55 and all those kinds of things.
2:56 Make sure you have Python 3.6 or higher
2:58 if you want to follow along on the client-side bit
3:01 of work that we're going to do.