gpt4 book ai didi

python - 如何在 Mac 上构建和安装 libvirt?

转载 作者:太空宇宙 更新时间:2023-11-03 12:17:35 27 4
gpt4 key购买 nike

我提到了 this article ,但使用了更新的库。明确地说,我下载了libgpg-error-1.10libgcrypt-1.5.0gnutls-3.1.3libvirt-1.0.0

libgpg-error-1.10, libgcrypt-1.5.0 安装成功,配置gnutls-3.1.3 时出现错误:

configure: error:

* Libnettle 2.5 was not found. Note that you must compile nettle with gmp support.

我想要的是使用 libvirt 的 python 绑定(bind)(即 import libvirt in python)。谁能解释如何获得可用的 python libvirt 库?

最佳答案

您最简单的选择可能是使用 homebrew安装 libvirt:

$ brew install libvirt

之后为 libvirt 编译 Python 绑定(bind)应该是微不足道的。

关于python - 如何在 Mac 上构建和安装 libvirt?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13136884/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com