安装¶
注意: 在这些步骤中,我们用于配置文件路径是基于 Ubuntu 操作系统。其他操作系统上的路径可能会有所不同。
在命令中使用的 branch_name,请为任何稳定分支安装指定 branch_name 为 stable/<branch>。例如:stable/queens, stable/pike。如果未指定,默认将是 master 分支。
使用 python 安装¶
克隆并安装 python-masakariclient 仓库。
$ cd ~/
$ git clone https://github.com/openstack/python-masakariclient -b <branch_name>
$ cd python-masakariclient
$ sudo python setup.py install
使用 pip¶
您也可以使用 pip 命令安装最新版本:
$ pip install python-masakariclient
或者,如果需要从 master 分支安装 python-masakariclient,请键入
$ pip install git+https://github.com/openstack/python-masakariclient.git