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
https://linen.prefect.io/t/2473273/It-works-on-3-10-for-me-I-figured-out-how-to-upgrade-my-depe