How to install python-guestfs and libguestfs-tools in python virtual environment?

7,100

Solution 1

Try these commands,

sudo apt-get install python-guestfs
sudo apt-get install libguestfs-tools

OR

sudo apt-get install python-pip
sudo pip install python-guestfs
sudo pip install libguestfs-tools

Solution 2

It is possible to pip install it from their self hosted folder that is provided here.

You will end up running the command:

pip install http://libguestfs.org/download/python/guestfs-1.XX.YY.tar.gz

This will trigger Python to pull down raw source and build it. Make sure that you have libguestfs library for C installed on your system as well as python3-devel package for this to work.

NOTE: instructions are listed on http://libguestfs.org/guestfs-python.3.html

Solution 3

I have started work on this. See the commit here which will allow you to build a python distribution of guestfs:

https://github.com/libguestfs/libguestfs/commit/fcbfc4775fa2a44020974073594a745ca420d614

Unfortunately we are waiting on the Python Software Foundation to resolve a licensing problem with the PyPi website before I am able to upload anything.

Share:
7,100

Related videos on Youtube

user27
Author by

user27

Updated on September 18, 2022

Comments

  • user27
    user27 over 1 year

    Can any one help me out to install python-guestfs and libguestfs-tools in python virtual environment?

    I tried to install those packages with the help of pip install but it fails to install because it throws an error package not found.

    • terdon
      terdon about 10 years
      Please show the exact command and the exact error produced.
    • Premkumar
      Premkumar about 10 years
      Bcoz You dont have the package inside the pip ,you can install through apt-get install python-guestfs
    • Rich
      Rich about 10 years
      I've filed an RFE here: bugzilla.redhat.com/show_bug.cgi?id=1075594 "RFE: python-libguestfs should be available on pypi"
  • user27
    user27 about 10 years
    I tried through pip install, the error was "No distributions at all found for python-guestfs". If we install through apt-get it will install and sit in the system but not in the virtual-env
  • Avinash Raj
    Avinash Raj about 10 years
  • Stormvirux
    Stormvirux about 10 years
    you cant install it through pip because these packages are not there at pypi as pip installs packages maintained by pypi
  • Navin
    Navin over 6 years
    What is the licensing problem?
  • Olaini Lature
    Olaini Lature over 4 years
    It would improve your answer if you would include the instructions in it.