SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

Set Up the SDK for Data Attribute Recommendation

Create a virtual environment and install the Python SDK (Software Development Kit) for Data Attribute Recommendation.

Overview

🎓 intermediate 15 min. Machine LearningIntermediateArtificial IntelligenceCloudSAP Business Technology PlatformSAP Ai ServicesData Attribute Recommendation

You will learn

  • โœ”How to set up a virtual environment
  • โœ”How to install the SDK for Data Attribute Recommendation
Juliana Morais J Juliana Morais June 5, 2025
Created by July 15, 2020
Contributors

Prerequisites

Steps

Windows macOS Linux BAS

Intro

Use Data Attribute Recommendation (one of the SAP AI Business Services in SAP Business Technology Platform) to classify entities such as products, stores and users into multiple classes, using free text, numbers and categories. For more information, see Data Attribute Recommendation help portal documentation. For the definition of specific terms, see Concepts.

The Data Attribute Recommendation service provides a REST API to communicate and interact with your service instance. The Python SDK for Data Attribute Recommendation provides an implementation that allows you to easily consume the APIs of the service without having to write your own code. It also serves as a reference implementation and can be easily transferred into other programming environments and languages.

The SDK is available in GitHub.


Step 1 Install Python
โ€”

First, you need to make sure that you have Python installed. Ideally, you have a Python version from 3.8 up to 3.11 as those are actively supported by the SDK.

Open up a command prompt and enter python --version to check the version that you have installed.

Open up a terminal and enter python3 --version to check the version that you have installed.

Open up a terminal and enter python3 --version to check the version that you have installed.

Python Version
Python Version

In case you have a Python installation, it will output the version. If you have a version lower than 3.8 head over here and install an up-to-date version that is supported by the SDK.

In case command not found is printed, you do not have Python installed. Head over here and install an up-to-date version that is supported by the SDK. Then, close down and open up a new command prompt or terminal and run the command python --version again to check if the installation was successful.

Step 2 Set up virtual environment
+
Step 3 Install SDK
+
Step 4 Test yourself
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 4
1. Install Python 2. Set up virtual environment 3. Install SDK 4. Test yourself

Learn more →