manojpatil04
Databricks Partner

@GabrieleMuciacc , in case of serverless compute job this can be pass as external dependency you can't use libraries. 

"tasks": [{ "task_key": task_id,  
                    "spark_python_task": {
                        "python_file": py_file,
                        "parameters": parameters
                        },
                    "environment_key": "Test_environment" }],
                "environments": [
                {
                "environment_key": "Test_environment",
                "spec":
                {
                "client": "1",
                "dependencies":["wheel file path preferable on volumes"]
                }
                }],