All Products
Search
Document Center

MaxCompute:Configure a Python development environment

Last Updated:Jun 20, 2026

MaxCompute Studio allows you to develop Python projects, such as user-defined functions (UDFs) and PyODPS scripts, in IntelliJ IDEA. This topic shows how to configure the Python development environment.

Install PyODPS

  1. Install PyODPS, the Python SDK for MaxCompute, on your local machine. For installation instructions, see Install PyODPS.
  2. Start IntelliJ IDEA and choose File > Settings from the top menu bar.
  3. In the left navigation pane of the Settings dialog box, click MaxCompute Studio.
  4. Set Python path to resolve UDF to your local Python installation path.
    In the General Settings section, set the Python path to resolve UDF field to your local Python installation path. For example, C:\Python27\python.exe.

Install the Python plugin

Search for and install the Python Community Edition plugin in the IntelliJ IDEA plugin marketplace.

  1. In the top menu bar of IntelliJ IDEA, choose File > Settings.
  2. In the left navigation pane of the Settings dialog box, click Plugins.
  3. In the search box, search for Python Community Edition and install it.

Configure Python dependencies

Configure the module's Python dependency to enable Python development in MaxCompute.

  1. On the top menu bar, choose File > Project Structure.
  2. Add an SDK.
    1. In the left navigation pane, click SDKs.
    2. Click the 加号 icon at the top, select Python SDK, choose System Interpreter, and then select your local Python interpreter.
      After the SDK is added, the Name field is set to Python 2.7, and the Python SDK home path field is set to C:\Python27\python.exe.
    3. Click Apply.
  3. Configure modules.
    1. In the left navigation pane, click Modules.
    2. Click + to add a Python facet to the module.
      After you add the Python facet, it appears as a Python sub-item under your module. Select this sub-item and then choose the required interpreter from the Python Interpreter drop-down list. For example, C:\Python27\python.exe.
    3. Click Apply.