virtualenv question: include just a few site packages

Jean-Michel Pichavant jeanmichel at
Fri Oct 10 13:17:11 CEST 2014

----- Original Message -----
> From: "Gelonida N" <gelonida at>
> To: python-list at
> Sent: Thursday, 9 October, 2014 5:55:44 PM
> Subject: Re: virtualenv question: include just a few site packages
> > You could build a virtual machine, installing only your VIP
> > modules, and create virtual environment on this virtual machine,
> > using the system site packages.
> >
> Yeah that's an option.
> However I guess in this case it's probably faster to write a script,
> that 'post-processes' the virtualenv and just deletes files /
> symlinks,
> that are not desired. Definitely not elegant, but probably OK. On the
> other hand a VM migfht help finding out which files to keep.

if you have the package somewhere of those modules you'd want to install you can specify local packages in the pip_requirement.txt file:



The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

More information about the Python-list mailing list