edit-icon download-icon

Online installation of Alibaba Cloud CLI and SDK

Last Updated: Jan 08, 2018

Pip is an automated management tool. To avoid many installation errors, we recommend that you use pip to install Alibaba Cloud CLI when your device is connected to the Internet. In addition, Alibaba Cloud CLI needs to run in Python environment. To make sure the correct installation of Alibaba Cloud CLI and Alibaba Cloud SDK, you must install Python, pip, Alibaba Cloud CLI and Alibaba Cloud SDK in sequence according to the following instructions.

Prerequisites

  • Operating system: Windows.

  • Operating environment: Python 2.7.x.

Install Python

If Python 2.7.x has been installed on your device, skip this step.

If you have not installed Python, go to the official website of Python, download the installation package of Python 2.7.x for Windows, and then install it in accordance with the installation wizard.

Note: When you install Python, make sure that you enable pip (see the following screenshot). Otherwise, you cannot use pip to install Alibaba Cloud CLI.

enable pip

Install Alibaba Cloud CLI

  1. Upgrade pip

    If pip version 7.x or later is installed on your device, skip this step.

    If the version of pip installed on your device is older than 7.x, the installation of Alibaba Cloud CLI fails. You can use the following command to upgrade pip first.

    Run the following command to upgrade pip.

    1. cd C:\Python27
    2. python -m pip install -U pip
    If the following information is displayed, it indicates that pip was successfully upgraded.

    1. Successfully uninstalled pip-7.1.2
    2. Successfully installed pip-8.1.2
  2. Run the following command to install Alibaba Cloud CLI.

    1. cd C:\Python27\Scripts
    2. pip install aliyuncli

    If the following information is displayed, it indicates that Alibaba Cloud CLI was successfully installed.

    1. Successfully installed aliyuncli-2.1.2 colorama-0.3.3 jmespath-0.7.1

Install SDK

Alibaba Cloud CLI must be used along with the SDKs of Alibaba Cloud products. The installation of Alibaba Cloud CLI is separated from the installation of SDKs. You do not need to download all SDKs, but select the SDKs of your expected products.

Taking the product RDS as an example, run the following command to install the RDS SDK.

  1. cd C:\Python27\Scripts
  2. pip install aliyun-python-sdk-rds

If the following information is displayed, it indicates that the RDS SDK was successfully installed.

  1. Successfully installed aliyun-python-sdk-rds-2.0.3

For more information about the SDKs of Alibaba Cloud products, see Alibaba Cloud Python SDK list.

Thank you! We've received your feedback.