Before you execute the files of Server Load Balancer (SLB) SDK for Python to use SLB features, you must complete the common configurations.
Before you run the code in script mode, make sure that the following requirements are met:
- Your account has a balance of at least CNY 100 so that you can be charged the instance fee when you use SLB SDK for Python to create an SLB instance.
- An AccessKey pair is obtained.
An AccessKey ID and an AccessKey secret that are used to verify your identity are obtained. For more information about how to obtain an AccessKey pair, see Obtain an AccessKey pair.
- The SLB Python example library for implementing SLB features with Alibaba Cloud SLB SDK for Python is downloaded.
- Go to the directory where setup.py is stored and run the following command to initialize the environment:
python setup.py install