All Products
Search
Document Center

MaxCompute:Configure a Python development environment

Last Updated:Mar 26, 2026

MaxCompute Studio lets you write user-defined functions (UDFs) and PyODPS scripts directly in IntelliJ IDEA. To enable Python support, complete three setup steps: install PyODPS, add the Python plug-in, and configure the Python SDK dependency for your project.

Prerequisites

Before you begin, make sure you have:

  • IntelliJ IDEA installed on your machine

  • MaxCompute Studio plug-in installed in IntelliJ IDEA

Step 1: Install PyODPS

PyODPS (MaxCompute SDK for Python) provides the Python runtime that MaxCompute Studio uses to resolve UDF parameters in the IDE.

  1. Install PyODPS on your machine. For details, see Install PyODPS.

  2. In IntelliJ IDEA, go to File > Settings.

  3. In the left-side navigation pane, click MaxCompute Studio.

  4. Set Python path to resolve UDF parameter to the local path of your Python.exe file.

Step 2: Install the Python plug-in

Install the Python Community Edition plug-in to add Python language support to IntelliJ IDEA.

  1. In IntelliJ IDEA, go to File > Settings.

  2. In the left-side navigation pane, click Plugins.

  3. In the search box, enter Python Community Edition and install the plug-in.

**

Step 3: Configure the Python dependency

Linking the Python SDK to the MaxCompute script module tells IntelliJ IDEA which Python interpreter to use when you develop UDFs and PyODPS scripts.

  1. Go to File > Project Structure.

  2. Add the Python SDK:

    1. In the left-side navigation pane, click SDKs under Platform Settings.

    2. Click the Plus icon icon, select Python SDK, select System Interpreter, and then select an interpreter.

    3. Click Apply.

  3. Add the Python SDK as a dependency for the MaxCompute script module:

    1. In the left-side navigation pane, click Modules under Project Settings.

    2. Click the plus sign (+) and add the Python SDK dependency for the MaxCompute script module.

    3. Click Apply.

Your Python development environment is now set up. You can start writing UDFs and PyODPS scripts in MaxCompute Studio.