[Answer]-Pip installing globally in virtualenv

1👍

I am not pretty sure, but I think when you’re calling the –no-site-packages option basically you are inheriting the modules installed in the system, I did the same as you and I could not find the site-packages folder (where your modules should be included when installed) on neither of my folders.

My recommendation is to avoid no-site-packages option if you want a “clean slate” installation of PIP.

0👍

I was having a similar issue. I ended up setting the following environment variables, and it’s been smooth ever since.

PIP_REQUIRE_VIRTUALENV=true
PIP_RESPECT_VIRTUALENV=true

Leave a comment