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.
If it is an ECS product, run the following command:
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.
Successfully installed aliyun-python-sdk-ecs-2.1.0
If the following information is displayed, it indicates ECS SDK has been installed already.
Requirement already satisfied (use --upgrade to upgrade): aliyun-python-sdk-ecs in /Library/Python/2.7/site-packages
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.
Find the installation directory in the system. The default installation directory for pip is:
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