-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Suggestion: Add an option to reset environments #1032
Comments
Any feedback on this? |
I've done this before as well (I ended up just smashing the whole thing into one bash command and rerunning it). |
This has been implemented as |
By accident I had installed packages in my main Anaconda environment, instead of an environment, and I wanted to reset it... Outside any environment:
|
In case anyone else find this thread, the issue that NumesSanguis points out above is resolved in conda versions from 4.3.33 and later. See Issue #6316. But it's extremely important that you check your conda version before trying |
it doest work..... (base) C:\Users\徐来>conda install --rev 1 Package Planenvironment location: V:\anconda added / updated specs: The following packages will be downloaded:
The following NEW packages will be INSTALLED: jedi pkgs/main/win-64::jedi-0.17.1-py38_0 The following packages will be REMOVED: _anaconda_depends-2020.07-py38_0 The following packages will be UPDATED: anaconda custom-py38_1 --> 2020.11-py38_0 The following packages will be SUPERSEDED by a higher-priority channel: backports.shutil_~ pkgs/main/noarch::backports.shutil_ge~ --> pkgs/main/win-64::backports.shutil_get_terminal_size-1.0.0-py38_2 The following packages will be DOWNGRADED: anaconda-project 0.9.1-pyhd3eb1b0_1 --> 0.8.4-py_0 Proceed ([y]/n)? n CondaSystemExit: Exiting. |
I think it may be a nice idea to add a conda command which resets an environment as a shortcut to deleting it and creating a new environment with the same name.
Why would someone need that? Well, I have testing environments which I use to test new packages or reproducing issues. After testing I usually want to clear all installed packages. Some command like
conda reset -n testenv
orconda clear -n testenv
would be very convenient.The text was updated successfully, but these errors were encountered: