1.2. 安装 Python 软件开发套件

安装 Python 软件开发套件:

  1. 启用 适合您的硬件平台 的仓库。例如,对于 x86-64 硬件,请启用:

    # subscription-manager repos \
        --enable=rhel-8-for-x86_64-baseos-rpms \
        --enable=rhel-8-for-x86_64-appstream-rpms \
        --enable=rhv-4.4-manager-for-rhel-8-x86_64-rpms
    
    # subscription-manager repos \
            --enable=rhel-8-for-x86_64-baseos-eus-rpms \
            --enable=rhel-8-for-x86_64-appstream-eus-rpms
    
    # subscription-manager release --set=8.6
  2. 安装所需的软件包:

    # dnf install python3-ovirt-engine-sdk4

Python 软件开发套件安装到 Python 3 site-packages 目录中,并安装了附带的文档和示例到 /usr/share/doc/python3-ovirt-engine-sdk4