I referred to this article, but used more recent libraries. To be explicit, I downloaded
libgpg-error-1.10
, libgcrypt-1.5.0
,gnutls-3.1.3
and libvirt-1.0.0
libgpg-error-1.10
, libgcrypt-1.5.0
installed OK and when configure gnutls-3.1.3
, an error comes:
configure: error:
* Libnettle 2.5 was not found. Note that you must compile nettle with gmp support.
What I want is to use libvirt's python binding(i.e. import libvirt
in python). Could anyone explain how to get a useable python libvirt library?
Your easiest options is probably using homebrew to install libvirt
:
$ brew install libvirt
After that compiling the Python bindings for libvirt
should be trivial.
After you install libvirt with:
$ brew install libvirt
you can install the libvirt python bindings with pip:
$ pip install libvirt-python
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With