nebari-dev / nebari

🪴 Nebari - your open source data science platform
https://nebari.dev
BSD 3-Clause "New" or "Revised" License
279 stars 91 forks source link

[ENH] - Override `pip/conda install ...` with message to use `conda-store` #1362

Open peytondmurray opened 2 years ago

peytondmurray commented 2 years ago

Feature description

Users who don't read the documentation about conda-store will likely try to modify user environments through conda/mamba/pip. One way of helping users understand how to modify their environments could be to prevent them from using these utilities by overriding them, and instead displaying a message directing them to use conda-store.

Value and/or benefit

Anything else?

No response

iameskild commented 1 year ago

@costrouc do you have a sense of difficult (or feasible) this might be?

pavithraes commented 8 months ago

Partially resolved by #2191

aktech commented 8 months ago

Alternatively we can add an alias for pip/conda that outputs a warning message, which is something like:

Please do not run pip/conda install unless you're running in a virtualenv, use conda-store rather
marcelovilla commented 8 months ago

For conda, we could add this alias for the different environments using activation/deactivation scripts. They would need to be added on environment creation.