Install the Simple Log Service SDK for Python before building applications that read from or write to Simple Log Service.
Prerequisites
Before you begin, ensure that you have:
-
Python installed with a development environment such as PyCharm
The SDK supports the following Python versions. Run
python -Vto check your version.Python 2.7
Python 3.7 or later
PyPy 2.7
PyPy 3.7 or later
-
The Python package manager pip installed
Run
pip -Vto verify your pip version. For Python 3, runpip3 -Vinstead.
Install the SDK
Run the following command to install the latest version of the SDK. For available releases, see aliyun-log-python-sdk releases.
pip install -U aliyun-log-python-sdk
Verify the installation
Run the following command to check that the SDK is installed:
pip show aliyun-log-python-sdk
A successful installation returns output similar to the following:
Name: aliyun-log-python-sdk
Version: 0.9.12
Summary: Aliyun log service Python client SDK
Home-page: https://github.com/aliyun/aliyun-log-python-sdk
Author: Aliyun
FAQ
What should I do if I see the error "'pip' is not recognized as an internal or external command"?
What to do next
Configure your access credentials to authenticate SDK calls.