Skip to content

Installation

YData SDK is generally available through both PyPi and Conda allowing an easy process of installation. This experience allows combining YData SDK with other packages such as Pandas, Numpy or Scikit-Learn.

YData SDK is available for the public through a token-based authentication system. If you don’t have one yet, you can get your license key by signing up at ydata.ai/register

Installing the package

YData SDK supports python versions newer than python 3.10, and can be installed in Windows, Linux or MacOS operating systems.

Prior to the package installation, it is recommended the creation of a Python virtual environment or conda environment:

pyenv virtualenv 3.12 ydata
pyenv activate ydata
conda create -n ydata python=3.12
conda activate ydata

Environment Pre-requisites

Before installing ydata-sdk, certain dependencies must be installed beforehand.

This guide walks you through the step-by-step installation of psycopg2—a PostgreSQL adapter for Python required by YData's PostgreSQLConnector—and WeasyPrint, which is essential for generating PDF reports with SyntheticDataProfileReport. The instructions cover Ubuntu, macOS, and Windows to ensure a smooth setup across different operating systems.

Ubuntu

sudo apt update
    sudo apt install -y \
    libpq-dev python3-dev \
    libpango-1.0-0 libcairo2 libpangoft2-1.0-0 libpangocairo-1.0-0 libgdk-pixbuf2.0-0

MacOS

brew install postgresql pango cairo gdk-pixbuf

Windows

On Windows, WeasyPrint requires GTK+ and Pango, and psycopg2 needs Microsoft Build Tools.

Installing ydata-sdk

Now that we have all the environment dependencies we are good to go and install ydata-sdk!

pip install ydata-sdk
conda install ydata-sdk