This topic describes how to install and configure the Alibaba Cloud Python probe in a UV environment. After the probe is installed, you can use it for performance monitoring, Tracing Analysis, and anomaly detection for your Python application.
Step 1: Download and decompress the Python probe package
Download the Python probe package.
wget http://arms-apm-${regionID}.oss-${regionID}.aliyuncs.com/aliyun-python-agent/aliyun-python-agent.tar.gzReplace
${regionID}with your region ID. For example:wget http://arms-apm-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/aliyun-python-agent/aliyun-python-agent.tar.gzDecompress the Python probe package.
tar -zxvf aliyun-python-agent.tar.gz
Step 2: Use UV to install the Python probe package
uv pip install aliyun-python-agent/target/*.whlStep 3: Use UV to run the Python application
uv aliyun-instrument python3 app.py