Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Conda cannot remove environment called "tensorflow"

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

like image 491
Euler_Salter Avatar asked Jan 25 '18 19:01

Euler_Salter


People also ask

How do I uninstall Anaconda packages?

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.

Why does conda take so long?

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.


1 Answers

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.

like image 99
juanpa.arrivillaga Avatar answered Oct 13 '22 13:10

juanpa.arrivillaga