edit-icon download-icon

Alibaba Clould SDK installation issues on Linux system

Last Updated: Sep 11, 2017

When you use Alibaba Cloud CLI for the first time, if the following information is displayed, it indicates that no available service can be found. You need to verify that you have installed the corresponding SDK for your product.

SDK installation problem

If it is an ECS product, run the following command:

  1. sudo pip install aliyun-python-sdk-ecs

If the following information is displayed, it indicates that no ECS SDK was installed before and the ECS SDK has been successfully installed now.

  1. Successfully installed aliyun-python-sdk-ecs-2.1.0

If the following information is displayed, it indicates ECS SDK has been installed already.

  1. Requirement already satisfied (use --upgrade to upgrade): aliyun-python-sdk-ecs in /Library/Python/2.7/site-packages
  2. Requirement already satisfied (use --upgrade to upgrade): aliyun-python-sdk-core>=2.0.2 in /Library/Python/2.7/site-packages (from aliyun-python-sdk-ecs)

If it is another type of product, install the corresponding SDK. If you do not know how to find the name of an SDK, query the page Alibaba Cloud Python SDK list, and then you can find the corresponding SDK name for each product.

If the above problem persists after Alibaba Cloud Python SDK is installed, the problem may be caused by different installation package management mechanisms in various systems. SDK may be not installed in the preset path, which makes Alibaba Cloud CLI unable to find the SDK folder. To solve this problem, do the following actions.

  1. Find the installation directory in the system. The default installation directory for pip is:/usr/local/lib/python_version/site-packages/aliyun_python_sdk_ecs-0.1.2.dist-info.

  2. Check whether there is a folder named aliyunsdkecs in aliyun_python_sdk_ecs-0.1.2.dist-info. If yes, move this folder to its parent directory, namely, the /usr/local/lib/python2.7/site-packages directory.

Thank you! We've received your feedback.