Prefect Cloud is a managed solution that provides strong scaling, performance, and security.
Learn more about Prefect Cloud solutions for enterprises here.
Prefect is published as a Python package.
To install the latest release or upgrade an existing Prefect install, and upgrade existing Python dependencies, run the following command in your terminal:
pipinstall-Uprefect
To install a specific Prefect version, specify the version number like this:
You can install and run Prefect via Windows PowerShell, the Windows Command Prompt, or conda. After installation, you may need to manually add the Python local packages Scripts folder to your Path environment variable.
The Scripts folder path looks something like this (the username and Python version may be different on your system):
Linux is a popular operating system for running Prefect.
If you are hosting your own Prefect server instance with a SQLite database, note that certain Linux versions of SQLite can be problematic.
Compatible versions include Ubuntu 22.04 LTS and Ubuntu 20.04 LTS.
If you're using a self-signed SSL certificate, you need to configure your environment to trust the certificate.
You can add the certificate to your system bundle and pointing your tools to use that bundle by configuring the SSL_CERT_FILE environment variable.
If the certificate is not part of your system bundle, you can set the
PREFECT_API_TLS_INSECURE_SKIP_VERIFY to True to disable certificate verification altogether.
Note: Disabling certificate validation is insecure and only suggested as an option for testing!
Prefect supports communicating via proxies through environment variables.
Whether you are using Prefect Cloud or hosting your own Prefect server instance, set HTTPS_PROXY and SSL_CERT_FILE in your environment, and the underlying network libraries will route Prefect’s requests appropriately.
Alternatively, the Prefect library will connect to the API via any proxies you have listed in the HTTP_PROXY or ALL_PROXY environment variables.
You may also use the NO_PROXY environment variable to specify which hosts should not be sent through the proxy.
For more information about these environment variables, see the cURL documentation.
The prefect-client library is a minimal installation of Prefect designed for interacting with Prefect Cloud or a remote self-hosted server instance.
prefect-client enables a subset of Prefect's functionality with a smaller installation size, making it ideal for use in lightweight, resource-constrained, or ephemeral environments.
It omits all CLI and server components found in the prefect library.
By default, a local Prefect server instance uses SQLite as the backing database.
SQLite is not packaged with the Prefect installation.
Most systems will already have SQLite installed, because it is typically bundled with Python.