Updated on 2024-03-06 GMT+08:00

Obtaining and Installing SDKs

Installing Python SDKs

This section provides instructions on how to install Python SDKs.

Obtaining DLI SDKs

On the displayed DLI SDK DOWNLOAD page, click the target link to obtain the desired SDK installation package.

Obtain the dli-sdk-python-x.x.x.zip package and decompress it. The following table shows the directory structure of the package.

Table 1 Directory structure

Parameter

Description

dli

DLI SDK basic module in the Python environment

examples

Python sample code

pyDLI

Implementation interface of PyHive

setup.py

Python SDK installation script

Installing DLI Python SDKs

  1. Download and decompress the SDK installation package.

    Decompress dli-sdk-python-<version>.zip to a local directory that can be adjusted.

  2. Install the SDK.
    1. On a PC running the Windows OS, choose Start > Run, enter cmd, and press Enter.
    2. In the command-line interface (CLI) window, access the windows directory in the directory where dli-sdk-python-<version>.zip is decompressed. For example, D:\tmp\dli-sdk-python-1.0.8.
    3. Run the following command to install DLI Python SDK (During the installation, the third-party dependencies are automatically downloaded):

      python setup.py install

      Figure 1 shows the installation result.

      Figure 1 Installing Python SDK