This topic describes the Python runtime environments in which you can write function code in Function Compute.
Python runtime environments
The following table describes the Python runtime environments that are supported by Function Compute.
Version | Identifier | Operating System | Architecture |
---|---|---|---|
Python 3.10 (in public preview) | python3.10 | Debian 10 | x86_64 |
Python 3.9 | python3.9 | Debian 9 | x86_64 |
Python 3.6 | python3 | Debian 9 | x86_64 |
Important The Python 2.7 runtime is no longer supported by Function Compute. For more information, see Runtime deprecation policy.
Built-in python modules
In addition to standard modules, the Python runtime environments in Function Compute provide common modules that you can directly use. The following tables describe the modules that are provided by Python runtime environments.
Python 3.10 (public preview)
Module | Description | Version |
---|---|---|
oss2 | OSS SDK | 2.16.0 |
tablestore | Tablestore SDK | 5.4.1 |
aliyun-fc2 | FC SDK | 2.5.2 |
aliyun-python-sdk-ecs | ECS SDK | 4.24.26 |
aliyun-python-sdk-vpc | VPC SDK | 3.0.27 |
aliyun-python-sdk-rds | RDS SDK | 2.7.2 |
aliyun-python-sdk-kms | KMS SDK | 2.16.0 |
aliyun-mns | MNS SDK | 1.1.5 |
aliyun-python-sdk-cdn | CDN SDK | 3.7.8 |
aliyun-python-sdk-ram | RAM SDK | 3.2.0 |
aliyun-python-sdk-sts | STS SDK | 3.1.0 |
aliyun-python-sdk-iot | IoT SDK | 8.47.0 |
aliyun-log-python-sdk | SLS SDK | 0.8.0 |
wand | Wand | 0.6.10 |
scrapy | Scrapy | 2.7.1 |
PyMySQL | PyMySQL | 1.0.2 |
elasticsearch | Elasticsearch Python Client | 8.5.2 |
Pillow | Pillow | 9.3.0 |
pyOpenSSL | pyOpenSSL | 1.0.2 |
redis | redis-py | 4.4.0 |
requests | HTTP | 2.28.1 |
Python 3.9
Module | Description | Version |
---|---|---|
oss2 | OSS SDK | 2.15.0 |
tablestore | Tablestore SDK | 5.2.1 |
aliyun-fc2 | FC SDK | 2.5.0 |
aliyun-python-sdk-ecs | ECS SDK | 4.24.11 |
aliyun-python-sdk-vpc | VPC SDK | 3.0.15 |
aliyun-python-sdk-rds | RDS SDK | 2.6.1 |
aliyun-python-sdk-kms | KMS SDK | 2.15.0 |
pydatahub | DataHub SDK | Unsupported |
aliyun-mns | MNS SDK | 1.1.5 |
aliyun-python-sdk-cdn | CDN SDK | 3.6.7 |
aliyun-python-sdk-ram | RAM SDK | 3.2.0 |
aliyun-python-sdk-sts | STS SDK | 3.1.0 |
aliyun-python-sdk-iot | IoT SDK | 8.30.0 |
aliyun-log-python-sdk | SLS SDK | 0.7.3 |
wand | Wand | 0.6.7 |
opencv | OpenCV | 4.5.4.58 |
numpy | NumPy | 1.21.4 |
scipy | SciPy | 1.7.2 |
matplotlib | Matplotlib | 3.4.3 |
scrapy | Scrapy | 2.5.1 |
Python 3.6
Module | Description | Version |
---|---|---|
oss2 | OSS SDK | 2.9.1 |
tablestore | Tablestore SDK | 5.1.0 |
aliyun-fc2 | FC SDK | 2.3.0 |
aliyun-python-sdk-ecs | ECS SDK | 4.10.1 |
aliyun-python-sdk-vpc | VPC SDK | 3.0.2 |
aliyun-python-sdk-rds | RDS SDK | 2.1.4 |
aliyun-python-sdk-kms | KMS SDK | 2.14.0 |
pydatahub | DataHub SDK | 2.11.2 |
aliyun-mns | MNS SDK | 1.1.5 |
aliyun-python-sdk-cdn | CDN SDK | 3.0.8 |
aliyun-python-sdk-ram | RAM SDK | 3.0.0 |
aliyun-python-sdk-sts | STS SDK | 3.0.0 |
aliyun-python-sdk-iot | IoT SDK | 7.8.0 |
aliyun-log-python-sdk | SLS SDK | 0.6.38 |
wand | Wand | 0.6.7 |
opencv | OpenCV | 3.3.0.10 |
numpy | NumPy | 1.13.3 |
scipy | SciPy | 1.0.0 |
matplotlib | Matplotlib | 2.0.2 |
scrapy | Scrapy | 1.4.0 |