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
Prevent package installs in the root environment #4929
Comments
I appreciate this feature request. I think it's a great idea. We'll keep it in mind.. |
I think this is a great idea, particularly because I have noticed that environments used on Windows seem to be able to pick up packages in the root environment sometimes. This has caused me a lot of confusion when I have inadvertently installed something to the root environment which I did not intend to. Could it be extended to prevent setuptools installs as well? |
possibly related: #4943 |
totally wish for this feature. |
You might be interested in the standalone executables: https://repo.anaconda.com/pkgs/misc/conda-execs/ |
Hi there, thank you for your contribution to Conda! This issue has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further activity occurs. If you would like this issue to remain open please:
NOTE: If this issue was closed prematurely, please leave a comment and we will gladly reopen the issue. In case this issue was originally about a project that is covered by the Anaconda issue tracker (e.g. Anaconda, Miniconda, packages built by Anaconda, Inc. like Anaconda Navigator etc), please reopen the issue there again. Thanks! |
please re-open, still valid afaik |
Hi there, thank you for your contribution! This issue has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further activity occurs. If you would like this issue to remain open please:
NOTE: If this issue was closed prematurely, please leave a comment. Thanks! |
Hi,
When I used to use
virtualenv
I was a big fan of using thePIP_REQUIRE_VIRTUALENV
flag, which stipulates that anypip install
commands must be run in a virtualenv in order to work. The rationale for this was to avoid polluting the global package space.Too often, I find myself absentmindedly forgetting to activate my conda environment and
{pip|conda} install
ing something. It'd be great to have a similar flag in conda to prevent this from happening, and block me from installing packages in the root environment.Alternatively, it'd be great to know of a way to reset the root environment to the default state (I couldn't find anything solving this when i looked online), to quickly clean up the global package space without
{pip|conda} uninstall
ing every single package.Thanks! Conda has been great for me, but this is a big feature (to me) that I sorely miss from my old virtualenv/pip setup
The text was updated successfully, but these errors were encountered: