If you run Home Assistant Core in a Python virtual environment, you need to keep the environment up to date. Here are the upgrade steps.