In the previous story, you learned to set up Ubuntu 20.04 on Windows 10 as Linux Subsystem Distribution. In this article, I will walk you through the installation process of Apache Airflow in WSL 2 using a virtual environment.

Installation of pip on WSL 2
- To set up a virtual environment, we need to install a python package named virtualenv.
- We will use the pip command for the same.
- If the python-pip is not available in your Linux distribution, execute the following command in an Ubuntu terminal:
username@desktop_name:~$ sudo apt install python3-pip [sudo] password for username:
- Type in the Linux password to proceed with the installation.
Installation of virtualenv package
After successfully installing pip, you will now have to install the virtualenv package using the following command: