How to install python-guestfs and libguestfs-tools in python virtual environment?
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.
Related videos on Youtube
user27
Updated on September 18, 2022Comments
-
user27 over 1 year
Can any one help me out to install
python-guestfs
andlibguestfs-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 about 10 yearsPlease show the exact command and the exact error produced.
-
Premkumar about 10 yearsBcoz You dont have the package inside the pip ,you can install through apt-get install python-guestfs
-
Rich about 10 yearsI've filed an RFE here: bugzilla.redhat.com/show_bug.cgi?id=1075594 "RFE: python-libguestfs should be available on pypi"
-
-
user27 about 10 yearsI 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 about 10 years
-
Stormvirux about 10 yearsyou cant install it through pip because these packages are not there at
pypi
as pip installs packages maintained by pypi -
Navin over 6 yearsWhat is the licensing problem?
-
Olaini Lature over 4 yearsIt would improve your answer if you would include the instructions in it.