简体   繁体   English

如何从 vscode 中删除 conda 环境?

[英]How to remove conda environment from vscode?

I created an environment using conda a long ago, and then I deleted it.我很久以前使用conda创建了一个环境,然后将其删除。 But still appears in the VScode kernel list.但仍然出现在 VScode 内核列表中。

rtvc环境

I already tried conda env list but it does not appear there:我已经尝试过conda env list但它没有出现在那里:

λ conda env list
# conda environments:
#
base                  *  /home/vishwa/anaconda3

I also tried jupyter kernelspec list , but it does not appear there either:我也试过jupyter kernelspec list ,但它也没有出现在那里:

λ jupyter kernelspec list 
Available kernels:
  python3    /home/vishwa/.local/share/jupyter/kernels/python3

How can I remove this environment from VScode?如何从 VScode 中删除此环境?

This is the full list of places where VSCode will try to find your environment.这是 VSCode 将尝试查找您的环境的位置的完整列表 One of these must be the source of your trouble.其中之一一定是你麻烦的根源。

conda remove --name myenv --all

或者

conda env remove --name myenv

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM