This topic describes how to install, update, and uninstall the server operation SDK for Python.
Prerequisites
ApsaraVideo VOD is activated. For more information, see Activate ApsaraVideo VOD.
Environment requirements
- 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
Note
- If you use Python 3.x, replace
pip install aliyun-python-sdk-core
withpip 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
sudo
before 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