MaxCompute Studio allows you to develop Python programs, such as user-defined functions (UDFs) and MaxCompute SDK for Python (PyODPS) scripts, in IntelliJ IDEA. This topic describes how to configure a Python development environment.
Install PyODPS
- Install PyODPS on your on-premises machine. For more information, see Install PyODPS.
- Start IntelliJ IDEA. In the top navigation bar, choose .
- On the Settings page, click MaxCompute Studio in the left-side navigation pane.
- Set the Python path to resolve UDF parameter to the local path of the Python.exe file.
Install the Python plug-in
In the plug-in repository of IntelliJ IDEA, search for Python Community Edition and install the Python plug-in.
- In the top navigation bar of IntelliJ IDEA, choose File > Settings.
- On the Settings page, click Plugins in the left-side navigation pane.
- In the search box, enter Python Community Edition to search for the Python plug-in. Then, install the Python plug-in.
Configure the Python dependency
After you configure the Python dependency for the MaxCompute script module, you can develop Python programs by using MaxCompute Studio.
- In the top navigation bar, choose .
- Add the Python SDK.
- Configure the Python dependency for the MaxCompute script module.