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
- SyntaxError: unexpected EOF while parsing
- How do I lowercase a string in Python?
- How do I copy a file in Python?
- How can I reverse a list in Python?
- Manually raising (throwing) an exception in Python
- How do I copy a file in Python?
- can’t multiply sequence by non-int of type ‘float’
- Difference between del, remove, and pop on lists
- How can I reverse a list in Python?
- How to use the pass statement
- How to use filter, map, and reduce in Python 3
- What does enumerate() mean?
- Searching the student-t distribution table for values using python
- How to declare an array in Python?
- Does Python have a ternary conditional operator?
- Use Gif Logo For Loading Screen In Kivy
- Praw & Discord.py: The bot keep sending the same meme. I want the bot to send different meme whenever it is asked
- Pig Latin Translator
- What is the difference between Python’s list methods append and extend?
- How can I make a time delay in Python? [duplicate]
- Python – TypeError: ‘int’ object is not iterable
- TypeError: ‘int’ object is not subscriptable
- sphinx.ext.autodoc: Keeping names of constants in signature
- are there dictionaries in javascript like python?
- How do you round UP a number?
- Understanding slice notation
- Iterating over dictionaries using ‘for’ loops
- How to define a two-dimensional array?
- how to sort pandas dataframe from one column
- Why am I seeing “TypeError: string indices must be integers”?
- How do you round UP a number?
- Understanding slice notation
- TypeError: only integer scalar arrays can be converted to a scalar index with 1D numpy indices array
- How do I update\upgrade pip itself from inside my virtual environment?