How to Solve ModuleNotFoundError: No module named 'tencentcloud' on Tencent Serverless Cloud Function?
Introduction You are excited to use Tencent Serverless Cloud Function to do your automation. You are following the Tencent API Explorer and you are ready to rock yet when you test your Python code; you encountered ModuleNotFoundError: No module named 'tencentcloud' . This is a guide on how to solve this error and explanations of why you need to do those steps. How to solve this error According to Tencent Cloud's Serverless Cloud Function's Dependency Installation guide , there are two ways to solve this problem. Package the dependency libraries and code together for upload - I haven't tried this so if you did and it works, please feel free to write a post and comment here. Use dependency management tools. Use dependency management tools to solve this error I'm going to use the same steps as shown in the guide. I will add pictures and edit the steps so that it will be easier for you. Log in to the SCF console and select Function Service on the left s...