-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--system-site-packages fails if PIP_REQUIRE_VIRTUALENV=true #557
Comments
Sounds like a bug. Virtualenv runs pip, using the new virtualenv's python, but it doesn't activate the virtuialenv. Maybe we need to unset I can't think of an obvious workaround apart from unsetting that variable temporarily when creating virtualenvs. Maybe pip needs an |
As alternatives, A) you can provide B) virtualenvwrapper has a great deal of functionality for handling this sort of functionality. From a Hope you might find those useful as well. |
I really like the idea of temporarily turning |
Pip does have |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Just add a comment if you want to keep it open. Thank you for your contributions. |
Based on some online docs I set up pip so it only runs for an activated virtual environment by setting PIP_REQUIRE_VIRTUALENV to true.
I have some packages installed on the system level that I'd like to install by default for some of my projects. My understanding is that I need to use the --system-site-packages flag to get this to happen.
If PIP_REQUIRE_VIRUTALENV is set to false - everything works ok.
If it's set to true it fails with the following errors:
I'm not sure if this is a bug or if there is another way that this should be done.
The text was updated successfully, but these errors were encountered: