### Install Tencent Cloud SDK for Python from Source Source: https://github.com/tencentcloud/tencentcloud-sdk-python-intl-en/blob/master/README.md Install the SDK by downloading the source package from GitHub. Navigate to the downloaded directory and run the setup script. ```bash cd tencentcloud-sdk-python-intl-en python setup.py install ``` -------------------------------- ### Install SDK using pip Source: https://github.com/tencentcloud/tencentcloud-sdk-python-intl-en/blob/master/README.rst Install the Tencent Cloud SDK for Python using pip. This is the recommended method for most users. ```sh $ pip install tencentcloud-sdk-python-intl-en ``` -------------------------------- ### Install SDK from Source Source: https://github.com/tencentcloud/tencentcloud-sdk-python-intl-en/blob/master/README.rst Download the source code from GitHub and install the SDK manually. This method is useful for developers who need to modify the SDK or work with a specific version. ```sh git clone https://github.com/tencentcloud/tencentcloud-sdk-python-intl-en.git cd tencentcloud-sdk-python-intl-en python setup.py install ``` -------------------------------- ### Query Availability Zones using CVM Client Source: https://github.com/tencentcloud/tencentcloud-sdk-python-intl-en/blob/master/README.md Example of using the CVM client to query availability zones. Requires Tencent Cloud credentials and an endpoint. Handles potential SDK exceptions. ```python # -*- coding: utf-8 -*- from tencentcloud.common import credential from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException # Import the client models of the corresponding product module. from tencentcloud.cvm.v20170312 import cvm_client, models try: # Instantiate an authentication object. The Tencent Cloud account `secretId` and `secretKey` need to be passed in as the input parameters cred = credential.Credential("secretId", "secretKey") # Instantiate the client object of the requested product (with CVM as an example) client = cvm_client.CvmClient(cred, "ap-shanghai") # Instantiate a request object req = models.DescribeInstancesRequest() # Call the API you want to access through the client object. You need to pass in the request object resp = client.DescribeInstances(req) # A string return packet in JSON format is outputted print(resp.to_json_string()) except TencentCloudSDKException as err: print(err) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.