This topic describes the steps to prepare the environment before you use the Python SDK to send and receive messages.
Process
-
Install Python 3.7 or later. For more information, see Python.
Obtain the resource information.
You must create the resources, including the instance, topic, and consumer group, in the ApsaraMQ for RocketMQ console in advance. For more information, see Step 2: Create resources.
-
Run the following command to install the Python library:
pip install rocketmq-python-client==5.1.1 Modify the parameters in the sample code based on the resource information obtained in Step 2: Create resources. Then, run the sample code.