Hi @KrishZ, To prevent Python packages from being installed when creating or starting a cluster, you can modify the cluster configuration by setting the spark.databricks.cluster.profile
to serverless
and spark.databricks.repl.allowedPyImportPrefixes
To an empty string. This will turn off the installation of Python packages and prevent the execution of any Python code. Alternatively, you can use init scripts to remove any installed packages.
To uninstall a specific package, you can use the pip uninstall
command followed by the package name.
To uninstall the legacy Databricks CLI, you can use the command. pip uninstall databricks-cli
.