Before you execute the files of Classic Load Balancer (CLB) SDK for Python to use CLB features, you must complete the common configurations that are described in this topic.

Prerequisites

Before you run the code in script mode, make sure that the following requirements are met:
  • Your Alibaba Cloud account has a balance of at least CNY 100. This way, you can be charged the instance fee when you use CLB SDK for Python to create a CLB instance.
  • An AccessKey ID and an AccessKey secret that are used for identity verification are created for your Alibaba Cloud account. For more information, see Obtain an AccessKey pair.
  • The example library of CLB Python is downloaded. For more information, see CLB Python example library.
    Go to the directory where the setup.py file is stored, and run the following command to initialize the environment:
    python setup.py install