<div dir="ltr">I installed libvirt 1.2 tarball and then I use pip install libvirt-python inside virtual env.. it worked.. <div><br></div><div>thanks</div><div>-Sijo<br><div><br></div><div><br></div></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Mar 6, 2014 at 12:02 PM, Roman Bogorodskiy <span dir="ltr"><<a href="mailto:bogorodskiy@gmail.com" target="_blank">bogorodskiy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="">  Sijo Jose wrote:<br>
<br>
> @Michel<br>
> using virtualenv we can create an isolated environment in the system.<br>
> Just go through - <a href="http://docs.python-guide.org/en/latest/dev/virtualenvs/" target="_blank">http://docs.python-guide.org/en/latest/dev/virtualenvs/</a><br>
> @Eric<br>
> I'm using Ubuntu, and I was able to install and use libvirt using sudo<br>
> apt-get install python-libvirt but its not available in tg2 virtual<br>
> environment.<br>
><br>
> Moreover if you try to install in the virtualenv using the sudo apt-get<br>
> install python-libvirt, it would say  the package is been already installed.<br>
<br>
</div>apt-get operates with system-level packages, so there's no<br>
difference if you run it from virtualenv or not.<br>
<br>
I think you have two options:<br>
<br>
- Install python-libvirt and create virtualenv with<br>
  --system-site-packages [1] so it pulls system python-libvirt<br>
<br>
- Activate virtualenv and install python-libvirt using pip<br>
<br>
1: <a href="http://virtualenv.readthedocs.org/en/latest/virtualenv.html#the-system-site-packages-option" target="_blank">http://virtualenv.readthedocs.org/en/latest/virtualenv.html#the-system-site-packages-option</a><br>

<span class="HOEnZb"><font color="#888888"><br>
Roman Bogorodskiy<br>
</font></span></blockquote></div><br></div>