This topic describes how to add dependencies and download SDK tools to install the Alibaba Cloud SDK for Python.

Note You must install the core library of the Alibaba Cloud SDK for Python regardless of the method that you use to install the Alibaba Cloud SDK for Python.

Prerequisites

Before you install and use the Alibaba Cloud SDK for Python, an Alibaba Cloud account is created and an AccessKey pair is created. For more information, see Create an AccessKey pair.

Installation methods

You can use the following two methods to install the Alibaba Cloud SDK for Python:

(Recommended) Use dependency managers

To install the core library of the Alibaba Cloud Python SDK, run the following command:
pip install aliyun-python-sdk-core

Download and install the Alibaba Cloud SDK for Python

You can run the git clone command or use other methods to download the aliyun-net-sdk-core library and implement a solution based on your business needs.

To download the aliyun-python-sdk-core library from GitHub, visit aliyun-python-sdk-core.

After the Alibaba Cloud SDK for Python is installed, you can use OpenAPI Explorer to generate the sample code of API operations for the SDK, and apply the sample code in your projects.

Core library of the Alibaba Cloud SDK for Python on GitHub

Core library of the Alibaba Cloud SDK for Python