SHOW_PYTHON_PACKAGES_DEPENDENCIES
functiondeferredUDFs, procedures, tasks, alerts, scriptingReturns a list of the dependencies and their versions for the Python packages that were specified. Note This function only works for Anaconda (Conda) packages. To resolve dependencies for packages from Artifact Repository (PyPI) or to work with packages from both Anaconda and Artifact Repository, use the SYSTEM$RESOLVE_PYTHON_PACKAGES function instead. For more information, see Packages policies.
Syntax
SNOWFLAKE.SNOWPARK.SHOW_PYTHON_PACKAGES_DEPENDENCIES( '<Python_runtime_version>', '<packages_list>' )
Parameters
| Name | Required | Description |
|---|---|---|
Python_runtime_version | required | String specifying the version of the Python runtime. |
packages_list | required | ARRAY of strings that specify the list of packages to check. You can use an ARRAY constant to specify this list. |
Returns
Returns a JSON array that contains the dependencies and their versions. Each element in the array is a string in the following format: <package_name>==<version_name>.
Access control requirements
You must use the ACCOUNTADMIN role to call this function.
See also
- SYSTEM$RESOLVE_PYTHON_PACKAGES - Returns dependencies for both Anaconda and Artifact Repository packages (no special privileges required) - Packages policies - Packages policies for Python
Known gaps
- The emulator has no Anaconda channel catalog from which to compute Python package dependency closures.