You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hub/python/web-frameworks.md
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,8 @@ author: mattwojo
5
5
ms.author: mattwoj
6
6
manager: jken
7
7
ms.topic: article
8
-
keywords: python, windows 10, microsoft, python on windows, python web with wsl, python web app with windows subsystem for linux, python web development on windows, flask app on windows, django app on windows, python web, flask web dev on windows, django web dev on windows, windows web dev with python, vs code python web dev, remote wsl extension, ubuntu, wsl, venv, pip, microsoft python extension, run python on windows, use python on windows, build with python on windows
9
8
ms.localizationpriority: medium
10
-
ms.date: 07/19/2019
9
+
ms.date: 10/08/2021
11
10
---
12
11
13
12
# Get started using Python for web development on Windows
@@ -22,9 +21,9 @@ If you are using Python for something other than web development, we recommend y
22
21
23
22
## Install Windows Subsystem for Linux
24
23
25
-
WSL lets you run a GNU/Linux command line environment integrated directly with Windows and your favorite tools, like Visual Studio Code, Outlook, etc.
24
+
WSL lets you run a GNU/Linux command line environment integrated directly with Windows and your favorite tools, like Visual Studio Code, Outlook, etc. We generally recommend using WSL 2 for Python web development work.
26
25
27
-
To enable and install WSL (or WSL 2 depending on your needs), follow the steps in the [WSL install documentation](/windows/wsl/install-win10). These steps will include choosing a Linux distribution (for example, Ubuntu).
26
+
To enable and install WSL 2, see the [WSL install documentation](/windows/wsl/install). These steps will include choosing a Linux distribution (for example, Ubuntu).
28
27
29
28
Once you have installed WSL and a Linux distribution, open the Linux distribution (it can be found in your Windows start menu) and check the version and codename using the command: `lsb_release -dc`.
30
29
@@ -59,7 +58,7 @@ Let's create a new project directory on our Linux (Ubuntu) file system that we w
59
58
60
59
## Install Python, pip, and venv
61
60
62
-
Ubuntu 18.04 LTS comes with Python 3.6 already installed, but it does not come with some of the modules that you may expect to get with other Python installations. We will still need to install **pip**, the standard package manager for Python, and **venv**, the standard module used to create and manage lightweight virtual environments.
61
+
Ubuntu 18.04 LTS comes with Python 3.6 already installed, but it does not come with some of the modules that you may expect to get with other Python installations. We will still need to install **pip**, the standard package manager for Python, and **venv**, the standard module used to create and manage lightweight virtual environments. *Remember that you may need to update your Linux distribution so that it has the latest version using the command: `sudo apt update && sudo apt upgrade`.*
63
62
64
63
1. Confirm that Python3 is already installed by opening your Ubuntu terminal and entering: `python3 --version`. This should return your Python version number. If you need to update your version of Python, first update your Ubuntu version by entering: `sudo apt update && sudo apt upgrade`, then update Python using `sudo apt upgrade python3`.
0 commit comments