This topic describes how to install, update, and uninstall the server operation SDK for Python.
ApsaraVideo VOD is activated. For more information, see Activate ApsaraVideo VOD.
- Python 2.7 or later is installed. You can go to the Python official website to obtain the required version.
- pip is installed. For more information about how to install pip, see the pip official website.
Install the SDK
Run the following commands to install the SDK:
pip install aliyun-python-sdk-core pip install aliyun-python-sdk-vod
- If you use Python 3.x, replace
pip install aliyun-python-sdk-corewith
pip install aliyun-python-sdk-core-v3. If you have installed different versions, you can run the pip3 command.
- If the system prompts for insufficient permissions during installation, add
sudobefore the commands.
Update the SDK
If new operations or new features of existing operations are unavailable in the current SDK, update the SDK to the latest version. The following sample code provides an example:
pip install --upgrade aliyun-python-sdk-vod
Uninstall the SDK
Use pip to uninstall the SDK. The following sample code provides an example:
pip uninstall aliyun-python-sdk-core pip uninstall aliyun-python-sdk-vod