我引用了this article,但使用了更新的库。坦白说,我下载了
libgpg-error-1.10
、libgcrypt-1.5.0
、gnutls-3.1.3
和libvirt-1.0.0
libgpg-error-1.10
,libgcrypt-1.5.0
安装正常,配置时出现错误:
configure: error:
* Libnettle 2.5 was not found. Note that you must compile nettle with gmp support.
我想要的是使用libvirt的python绑定(即python中的import libvirt
)。有人能解释一下如何获得一个可用的python libvirt库吗?
最简单的选项可能是使用homebrew安装
libvirt
:在那之后,为
libvirt
编译Python绑定应该很简单。使用以下命令安装libvirt之后:
$ brew install libvirt
可以使用pip安装libvirt python绑定:
$ pip install libvirt-python
我在一个相当新的MacOSX 10.10.5上运行了以下命令
相关问题 更多 >
编程相关推荐