Lazo Lab Sign up

App 4: Weather App with a Real API / Build the weather app

Lesson 2 of 10

Installing requests

requests is the most popular Python package for talking to websites. Make a virtual environment for the project and install it there.

Key points

  • python3 -m venv venv
  • source venv/bin/activate
  • pip install requests
mkdir weather-app && cd weather-app
python3 -m venv venv
source venv/bin/activate
pip install requests

Your turn

Set up the folder, venv and requests as shown.

Watch a video on thisOpens YouTube search results for “Installing requests” in a new tab

Quiz · +10 XP

Why install packages inside a virtual environment?

Log in to save progress and earn XP.