How to remove conda environment from vscode?

Viewed 489

I created an environment using conda a long ago, and then I deleted it. But still appears in the VScode kernel list.

rtvc environment

I already tried conda env list but it does not appear there:

λ 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 
Available kernels:
  python3    /home/vishwa/.local/share/jupyter/kernels/python3

How can I remove this environment from VScode?

2 Answers
conda remove --name myenv --all

or

conda env remove --name myenv

This is the full list of places where VSCode will try to find your environment. One of these must be the source of your trouble.

Related