Before you use SDK for Python to send and subscribe to messages, perform the steps in this topic to prepare the environment.
Environment requirements
- Python is installed. For more information, visit Install Python. You must install an appropriate version of Python based on the following instructions:
- If the version of your SDK is v1.0.0, make sure that the version of Python you installed is 2.5 or is later than 2.5 but earlier than 3.0.
- If the version of your SDK is later than v1.0.0, make sure that the version of Python you installed is 2.5 or later.
- The pip tool is installed. For more information, visit Install pip. Note The pip tool is included in Python 3.4 or later by default. If the version of Python you installed is 3.4 or later, you do not need to separately install the pip tool.
After Python is installed, you can run the python -V
command to view the version of Python.
Install the SDK
Run the following command to install SDK for Python:
pip install mq_http_sdk