To install the clients on a Linux, Mac OS X, or Microsoft Windows
system, use pip. It is easy to use, ensures that you get the latest
version of the clients from the Python Package Index, and lets you update or remove
the packages later on.
由于安装过程需要编译源文件,所以需要安装与你操作系统对应的 Python 开发包 。
Option 1: Install pip using get-pip.py
To install pip, securely download get-pip.py.
Then run the following:
# python get-pip.py
For more details visit install pip.
Option 2: Install pip through the package manager for your system
Ubuntu 或者 Debian
# apt install python-dev python-pip
注意到每一个操作系统可能需要额外的依赖,这取决于你正在安装的包,例如 Tempest 的情况。
Red Hat Enterprise Linux or CentOS
一个打包的版本可以使你能够使用 yum 来安装包:
# yum install python-devel python-pip
On Red Hat Enterprise Linux, this command assumes that you have enabled
the OpenStack repository. For more information, see the
Installation Tutorial for Red Hat Enterprise Linux and CentOS.
There are also packaged versions of the clients available that enable
yum to install the clients as described in
Installing_from_packages.
Fedora
A packaged version enables you to use dnf to install the
package:
# dnf install python-devel python-pip
SUSE Linux 企业版服务器
A packaged version available in the Open Build Service
enables you to use YaST or zypper to install the package.
First, add the Open Build Service repository as described in the
Installation Tutorial.
然后安装 pip 并使用它管理客户端的安装:
# zypper install python-devel python-pip
还有其他可用的客户端打包版本,这些版本能够使 zypper 像 Installing_from_packages 章节描述的那样安装客户端。
openSUSE
你可以安装 pip 并通过它管理客户端的安装:
# zypper install python-devel python-pip
还有其他可用的客户端打包版本,这些版本能够使 zypper 像 Installing_from_packages 章节描述的那样安装客户端。