How to use python environment created using virtualenv?

Fabio Zadrozny fabiofz at gmail.com
Tue Aug 16 16:06:18 CEST 2011


On Tue, Aug 16, 2011 at 2:15 AM, smith jack <thinke365 at gmail.com> wrote:
> I have created a python environment using virtualenv, but when i want
> to import such environment to PyDev, error just appears,
> it tells there should be a Libs dir, but there is no Libs DIr in the
> virtual envronment created using virtualenv, what should i do if
> i want to use this virtual environment?


You have to use the Lib dir from the base python (the one you used to
create your virtualenv) -- it needs that to have access to the base
python library (i.e.: threading.py, etc).

Cheers,

Fabio



More information about the Python-list mailing list