Skip to content

Installing cldk

CLDK is a Python SDK hosted on PyPI and can be installed using your preferred Python package manager.

The Python SDK can be installed directly from PyPI using any Python package manager such as pip, poetry, or uv:

Terminal window
pip install cldk

Programming Language Specific Dependencies

Section titled “Programming Language Specific Dependencies”

CLDK supports program analysis for multiple languages and requires additional dependencies to support specific languages. The following tabs list the additional dependencies required for each language:

For Python analysis as well as to use the CLDK Python SDK, you will need to install the Python programming language with version 3.11 or later. We recommend using a package manager like pyenv to install and manage Python dependencies.

Some operating systems may require additional development tools:

  • Make sure you have the Xcode Command Line Tools installed. You can install them using the following command:

    Terminal window
    xcode-select --install
  • Additionally, you may need to install the following packages using Homebrew:

    Terminal window
    brew install openssl readline sqlite3 xz zlib tcl-tk libffi

CLDK is compatible with Python versions 3.11 and later. The following table lists the supported Python versions and the corresponding CLDK versions:

Python VersionCompatible cldk Versions
3.11≥0.4.0