44

I was trying to create an Anaconda environment from Pycharm, but while I was experimenting different paths, one of the environments was created with no name. like the following:

base                  *  /Applications/anaconda3
snowflaks                /Users/usr/.conda/envs/snowflaks
                         /Users/usr/anaconda3/envs/snowflaks

I wanted to delete the environment with an empty name but could not figure out a way. I tried using "\ " to make the name empty but it didn't work. Also, there is no envs folder inside anaconda3 (which is probably why this happened?), so I can't just delete it as well.

Any suggestions?

Thanks!

merv
  • 67,214
  • 13
  • 180
  • 245
Amber G
  • 441
  • 1
  • 4
  • 3

1 Answers1

67

I was able to solve a similar situation by removing it using the prefix rather than the name.

I.E. conda env remove -p /Users/usr/anaconda3/envs/snowflaks

drowningincode
  • 1,115
  • 1
  • 12
  • 19