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


Talk Python's Mastodon Michael Kennedy's Mastodon