This topic describes how to download and install faascmd.
Prerequisites
- The AccessKey ID and AccessKey secret of the RAM user are obtained. For more information, see Create an AccessKey.
- Python is installed and the version of SDK for Python is checked. The procedure is
as follows:
- Run the
python -V
command to check whether the Python version is 2.7.x. - Run the following commands to install Python modules:
pip -q install oss2 pip -q install aliyun-python-sdk-core pip -q install aliyun-python-sdk-faas pip -q install aliyun-python-sdk-ram
- Run the following command to check whether the version of aliyun-python-sdk-core is
2.11.0 or later:
cat /usr/lib/python2.7/site-packages/aliyunsdkcore/__init__.py
Note If the version is earlier than 2.11.0, run thepip install --upgrade aliyun-python-sdk-core
command to upgrade aliyun-python-sdk-core to the latest version.
- Run the