Skip to content
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

Treat base conda environment as though it was a system Python #7137

Closed
notatallshaw opened this issue Sep 6, 2024 · 0 comments · Fixed by #7691
Closed

Treat base conda environment as though it was a system Python #7137

notatallshaw opened this issue Sep 6, 2024 · 0 comments · Fixed by #7691
Labels
breaking A breaking change needs-decision Undecided if this should be done

Comments

@notatallshaw
Copy link
Contributor

notatallshaw commented Sep 6, 2024

The base environment of conda is often not something that should be installed into as it can break conda.

It appears you can detect if the base environment is currently activated if CONDA_PREFIX_1 is not set and/or CONDA_DEFAULT_ENV is equal to base (on very old versions of conda this was named root) : https://conda.io/projects/conda/en/latest/dev-guide/deep-dives/activation.html#conda-activate

Perhaps worth requiring users to use --system to install into this base conda environment?

@zanieb zanieb added needs-decision Undecided if this should be done breaking A breaking change labels Sep 7, 2024
@zanieb zanieb closed this as completed in 8034de7 Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking A breaking change needs-decision Undecided if this should be done
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants