Help Center/ Content Moderation/ SDK Reference/ Using the Python SDK/ Obtaining and Installing the Python SDK
Updated on 2023-07-17 GMT+08:00

Obtaining and Installing the Python SDK

To obtain and install the Python SDK, you are advised to use pip commands or PyCharm. You need to install the huaweicloudsdkcore and huaweicloudsdkmoderation packages as follows:

Install the Python SDK using pip commands:
# Install the huaweicloudsdkcore package.
pip install huaweicloudsdkcore

# Install the huaweicloudsdkmoderation package.
pip install huaweicloudsdkmoderation

To install the Python SDK using PyCharm, perform the following steps:

  1. Start PyCharm and choose File > Settings...
  2. Choose Python Interpreter.
  3. Click +, search for huaweicloudsdkcore and huaweicloudsdkmoderation, and click Install Package in the lower left corner to install the packages.
Figure 1 Installing the Python SDK for Content Moderation using PyCharm