Learn how to run Prefect server and workers on Windows with PowerShell.
%USERPROFILE%\.prefect\prefect.db
with no additional configuration needed. For production deployments, you can configure PostgreSQL using standard connection strings:
%USERPROFILE%\.prefect\
, your Python installation directory, and temporary directories used by flows. This prevents real-time scanning from interfering with Prefect operations.
where prefect
to see if the command is found.
For example, if the prefect
command isn’t found, you’ll need to add the Python Scripts directory to your PATH
. This is a common issue on Windows when Python isn’t installed system-wide:
PREFECT_SERVER_API_HOST
and PREFECT_SERVER_API_PORT
environment variables:
'charmap' codec
errors) can occur on some Windows systems. Set the Python I/O encoding to UTF-8: