This topic describes how to install Function Compute SDK for Python.

Prepare the environment

Install Python 2.7 or 3.6. For more information, see Python.

Note Python is embedded with pip, a package installer. You do not need to manually install pip. After you install Python, you can run the python -V command to check the installed version.

Install the SDK

You can use one of the following methods to install SDK for Python in Linux:

  • Run the following command to install the latest official version:
    pip install aliyun-fc2
    Note We recommend that you install the latest official version of SDK for Python.
  • Run the following command to install the earlier official version of SDK for Python:
    pip install aliyun-fc