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:
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
Windows
On Windows, WeasyPrint requires GTK+ and Pango, and psycopg2 needs Microsoft Build Tools.
- Microsoft Visual C++ Build Tools
- Download from Microsoft Build Tools
- Install GTK+ for WeasyPrint
- Download and install the GTK for windows
- Add the bin/ folder to the system PATH to ensure it can be accessed.
- Install PostgreSQL for psycopg2
- Download and install PostgreSQL for Windows
Installing ydata-sdk
Now that we have all the environment dependencies we are good to go and install ydata-sdk
!