I just run the following command to create a Conda environment:
conda create -n tensorflow python=3.5
However, I want to delete it now. When I try doing:
conda remove -n tensorflow
or
conda remove --name tensorflow
I get the following error:
CondaValueError: no package names supplied,
try "conda remove -h" for more details
However, if I try and see which environments I have, I can see:
base * C:\Users\Me\Anaconda3
flask_env C:\Users\Me\Anaconda3\envs\flask_env
tensorflow C:\Users\Me\Anaconda3\envs\tensorflow
My idea is that I have called the environment with the same name of the package tensorflow.. even though I don't have tensorflow installed in the "base" environment
Open Terminal. Type and run conda install anaconda-clean to install the Anaconda-Clean package. Press the Return key, then type the following: anaconda-clean –yes. To remove the entire Anaconda directory, type and run rm -rf ~/anaconda3.
Unlike many package managers, Anaconda's repositories generally don't filter or remove old packages from the index. This allows old environments to be easily recreated. However, it does mean that the index metadata is always growing, and thus conda becomes slower as the number of packages increases.
I would try:
conda env remove --name tensorflow
Which forces conda
to only consider environments, since a
conda remove
command can also be used to remove packages. I suspect conda
is being tripped up by the fact that tensorflow
is a package name and an environment name.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With