All Products
Search
Document Center

Simple Message Queue (formerly MNS):Install SMQ SDK for Python

Last Updated:Mar 11, 2026

Simple Message Queue (SMQ), formerly MNS, provides SMQ SDK for Python to send and receive messages programmatically. This guide covers installation and verification.

Prerequisites

Before you begin, ensure that you have:

Note

Python includes pip by default. After you install Python, run python -V to verify the installed version.

Install with pip (recommended)

  1. Install the latest version of the SDK:

    pip install aliyun-mns-sdk

    To install a specific version, append a version constraint:

    pip install aliyun-mns-sdk==<version>

Install from source

Use this method if you need to modify the SDK source code or cannot use pip.

  1. Download the latest SMQ SDK for Python package and decompress it.

  2. Verify that a setup.py file exists in the decompressed directory.

  3. Run the following command to install:

    python setup.py install

Verify the installation

After installation, confirm that the SDK is available in your Python environment:

pip show aliyun-mns-sdk

The output displays the package name, version, and installation location if the SDK is installed correctly.

What's next