删除没有名称的 Anaconda 环境? [英] remove Anaconda environment with no name?
问题描述
我试图从 Pycharm 创建一个 Anaconda 环境,但是当我尝试不同的路径时,其中一个环境没有命名.像下面这样:
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
我想删除名称为空的环境但找不到方法.我尝试使用\"使名称为空,但没有用.另外,anaconda3 中没有 envs 文件夹(这可能是发生这种情况的原因?),所以我也不能删除它.
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.
有什么建议吗?
谢谢!
推荐答案
通过使用前缀而不是名称来删除它,我能够解决类似的情况.
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
这篇关于删除没有名称的 Anaconda 环境?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!