Import third-party libraries

更新时间:
复制 MD 格式

This topic describes how to import third-party libraries in Alibaba Cloud RPA Editor.

Note

This topic applies only to RPA Client V4.8.0 and later. If your RPA Client version is earlier than V4.8.0, see Import third-party libraries (for client versions <4.8.0).

Install Python 3.8.10 (32-bit)

Download the installation package from the bottom of the official download page at https://www.python.org/downloads/release/python-3810/.

Note

For projects created in RPA Client V4.8.0 or later, you must use the Python 3.8.10 (32-bit) interpreter to import third-party libraries. Otherwise, the package import will fail. For projects created in RPA Client versions earlier than V4.8.0 that require third-party libraries, see Import third-party libraries (for client versions <4.8.0).

Install the RPA packaging tool

Run the following command to install the tool: pip install alirpa_pack

image..png

Install required extensions

Install specific extension packages as needed, such as pymysql.

Important

If a third-party library installed using pip install does not work in RPA, the installed version may be incompatible with Python 3.8.10. To resolve this issue, find and install a compatible version for the Python 3.8.10 interpreter from the official PyPI website.

image..png

Package the .rpax file

To package the extension into an .rpax file, run the following command: python -m alirpa_pack pymysql

image..png

Import the external extension

Open the Alibaba Cloud RPA Editor client. Click the Project button and select Component Management. In the Component Management window, import the .rpax file of the third-party library.