When running Prefect deployments on Windows with Python 3.7, I'm getting NotImplementedError - how to fix this?

Problem

The issue occurs because anyio doesn’t have a way to do subprocesses on Windows with Python 3.7

Solution

Make sure to use Python 3.8 or higher when running your Prefect agent on Windows

Related discussion