Skip to content Skip to sidebar Skip to footer

Can't Configure A Virtualenv To Not Use Packages Outside My Virtual Environment On Windows

I have python 2.7 installed globally in c:/python27 on Windows 7. I successfully installed virtualenv 1.11.6 using pip install virtualenv I then create a virtual env using python.e

Solution 1:

After the comment thread... solution is don't put your site-packages in your PYTHONPATH. :)

Solution 2:

If you're using a new enough virtualenv, it won't include site-packages by default.

If you're using an older release, create it as follows:

virtualenv --no-site-packages target-directory

Post a Comment for "Can't Configure A Virtualenv To Not Use Packages Outside My Virtual Environment On Windows"