---
title: Python wheel task for jobs
description: Configure a Python wheel task in a Lakeflow Job to deploy code packaged as a Python wheel.
canonical_url: https://docs.databricks.com/aws/en/jobs/tasks/python-wheel
---

# Python wheel task for jobs

Use the Python wheel task type to deploy code packaged as a Python wheel.

## Requirements

* You must upload your Python wheel file to a location or repository compatible with your compute configuration.
* You must know the name and entry point defined in the `setup.py` file. For an example `setup.py`, see [Use a Python wheel file in Lakeflow Jobs](https://docs.databricks.com/aws/en/jobs/how-to/use-python-wheels-in-workflows.md).

## Configure a Python wheel task

> [!NOTE]
>
> The jobs UI displays options dynamically based on other configured settings.

Add a `Python wheel` task from the **Tasks** tab in the Jobs UI by doing the following:

1. Click ![Plus icon.](https://docs.databricks.com/aws/en/images/product-icons/PlusIcon.svg) **Add task**.
2. Enter a name into the **Task name** field.
3. In the **Type** drop-down menu, select `Python wheel`.
4. In the **Package name** field, enter the value assigned to the `name` variable in `setup.py`.
5. In the **Entry Point** field, enter the function that runs the logic in the wheel. This function must be defined as a key in the `entry_points` dictionary in `setup.py`.
6. Use **Compute** to select or configure a cluster that supports the logic in your wheel.
7. If you use `Serverless` compute, use the **Environment and Libraries** field to select, edit, or add a new environment. See [Configure the serverless environment](https://docs.databricks.com/aws/en/compute/serverless/dependencies.md).
8. For all other compute configurations, click ![Plus icon.](https://docs.databricks.com/aws/en/images/product-icons/PlusIcon.svg) **Add** under **Dependent libraries**. The **Add dependent library** dialogue appears.
   * You can select an existing Python wheel or upload a new Python wheel file.
   * You must store wheel files in a location supported by your compute configurations. See [Python library support](https://docs.databricks.com/aws/en/libraries/index.md#python-library-support).
   * Each **Library Source** has a different flow for selecting or uploading a wheel. See [Install libraries](https://docs.databricks.com/aws/en/libraries/index.md).
9. (Optional) Configure **Parameters**. You can use either **Positional arguments** or **Keyword arguments**. See [Configure task parameters](https://docs.databricks.com/aws/en/jobs/task-parameters.md).
10. (Optional) To configure retries, run-duration or streaming-backlog thresholds, or notifications, see [ Advanced task settings](https://docs.databricks.com/aws/en/jobs/configure-task.md#advanced).
11. Click **Save task**.

To edit, clone, disable, or delete this task, see [Configure and edit tasks in Lakeflow Jobs](https://docs.databricks.com/aws/en/jobs/configure-task.md).

## <a id="additional-resources" />Additional resources

* [Python wheel task](https://docs.databricks.com/aws/en/dev-tools/bundles/job-task-types.md#python-wheel-task): Define a Python wheel task as code with Declarative Automation Bundles.
* [Use a Python wheel file in Lakeflow Jobs](https://docs.databricks.com/aws/en/jobs/how-to/use-python-wheels-in-workflows.md): Use a Python wheel in a workflow.
* [Configure task parameters](https://docs.databricks.com/aws/en/jobs/task-parameters.md): Pass parameters to the task.
