You can’t.
One workaround is to create clone a new environment and then remove the original one.
First, remember to deactivate your current environment. You can do this with the commands:
deactivate
on Windows orsource deactivate
on macOS/Linux.
Then:
conda create --name new_name --clone old_name conda remove --name old_name --all # or its alias: `conda env remove --name old_name`
Notice there are several drawbacks of this method:
- It redownloads packages (you can use
--offline
flag to disable it) - Time consumed on copying environment’s files
- Temporary double disk usage
There is an open issue requesting this feature.
Related Posts:
- How do I update Anaconda?
- ‘Conda’ is not recognized as internal or external command
- ‘Conda’ is not recognized as internal or external command
- ModuleNotFoundError: No module named ‘sklearn’
- How to activate an Anaconda environment
- ModuleNotFoundError: No module named ‘sklearn’
- Conda uninstall one package and one package only
- How do I install Python OpenCV through Conda?
- How to run Conda?
- Installing tensorflow with anaconda in windows
- Import Error: No module named numpy Anaconda
- How to install pytorch in windows?
- Install Plotly in Anaconda
- Can’t update to numpy 1.13 with anaconda?
- Conda command is not recognized on Windows 10
- pip not recognised as an internal or external command
- No module named ‘sklearn.cross_validation’
- Conda command not found
- How is Anaconda related to Python?
- difference between command prompt and anaconda prompt
- Conda command not found
- Confusion between Python and Anaconda
- Jupyter Notebook not saving: ‘_xsrf’ argument missing from post
- Jupyter Notebook not saving: ‘_xsrf’ argument missing from post
- anaconda update all possible packages?
- Anaconda vs. miniconda
- How do I upgrade to Python 3.6 with conda?
- anaconda – path environment variable in windows
- Python Pandas – Missing required dependencies [‘numpy’] 1
- How to remove anaconda from windows completely?
- What is the difference between pip and conda?
- Trouble updating to Anaconda Navigator 1.10.0 (MacOS)
- What is the difference between Anaconda and Pycharm?
- How can I upgrade NumPy?
- Cannot uninstall Tensorflow
- Removing Conda environment
- anaconda/conda – install a specific package version
- how to update spyder on anaconda
- Using Pip to install packages to Anaconda Environment
- Anaconda Navigator won’t launch (windows 10)
- Can’t open Jupyter notebook with Anaconda
- How to install xgboost in Anaconda Python (Windows platform)?
- ‘Jupyter’ is not recognized as an internal or external command
- How can I download Anaconda for python 3.6
- No module named “Torch”
- Spyder Not Launching
- How can I install the latest Anaconda with wget
- ValueError: Unknown projection ‘3d’ (once again)
- Distributed 1.21.8 requires msgpack, which is not installed
- Zsh: Conda/Pip installs command not found
- ImportError: No module named ‘google’
- Anaconda / Python: Change Anaconda Prompt User Path
- Anaconda Installed but Cannot Launch Navigator
- Can’t find module cPickle using Python 3.5 and Anaconda
- Installation of pygame with Anaconda
- Installing opencv on Windows 10 with python 3.6 and anaconda 3.6
- Importing Pandas gives error AttributeError: module ‘pandas’ has no attribute ‘core’ in iPython Notebook
- How to install discord.py rewrite?
- pip throws TypeError: parse() got an unexpected keyword argument ‘transport_encoding’ when trying to install new packages
- A very basic setting issue about spyder and anaconda for python
- Anaconda “failed to create process”
- Anaconda – UnsatisfiableError: The following specifications were found to be in conflict
- How to change python version in Anaconda?
- Cannot remove entries from nonexistent file
- How to check python anaconda version installed on Windows 10 PC?
- Issues with installing python libraries on Windows : CondaHTTPError: HTTP 000 CONNECTION FAILED for url
- How to move a file in Python?
- Round a floating-point number down to the nearest integer?
- beyond top level package error in relative import
- How do you append to a file?
- sklearn error ValueError: Input contains NaN, infinity or a value too large for dtype(‘float64’)
- How do I convert a list of ascii values to a string in python?
- How can I compare two lists in python and return matches
- Convert DataFrame column type from string to datetime, dd/mm/yyyy format
- How can I remove a trailing newline?
- Selenium using Python – Geckodriver executable needs to be in PATH
- Spark RDD to DataFrame python
- index 1 is out of bounds for axis 0 with size 1
- For loop and ‘numpy.float64’ object is not iterable error
- What are the causes of overflow encountered in double_scalars besides division by zero?
- Creating a dictionary from a csv file?
- How can I check for NaN values?
- Bad operand type for unary +: ‘str’
- How do I get the parent directory in Python?
- Find the nth occurrence of substring in a string
- How to convert ‘binary string’ to normal string in Python3?
- What is the meaning of curly braces?
- TypeError: ‘set’ object does not support indexing
- Python 3.6 No module named pip
- Difference between import tkinter as tk and from tkinter import
- Split function add: \xef\xbb\xbf…\n to my list
- NameError: name ‘python’ is not defined
- What is an easy way to implement fprintf in python?
- What is the recommended way to use Vim folding for Python code
- Plotting a python dict in order of key values
- How to normalize a NumPy array to within a certain range?
- Python ‘while’ with two conditions: “and” or “or”
- How to pass a list by reference?
- Python Quicksort Runtime Error: Maximum Recursion Depth Exceeded in cmp
- i want to run python script in wordpress