Discussed in #22742
Originally posted by Roderick-Stinson January 11, 2024
Because of the feature of python extension, which is Activate Environments in Terminal Using Environment Variables, python extension will delete an environment variable $CONDA_PREFIX,
the show environment contributions file looks like this:

you can see there isn't a variable named CONDA_PREFIX, instead there are CONDA_PREFIX_2andCONDA_PREFIX_3.
this leads to crash of conda

So could you please help solve this question? It's really annoying. My current solution is add export CONDA_PREFIX=/home/wangzihan/miniconda3 in .bashrc
Discussed in #22742
Originally posted by Roderick-Stinson January 11, 2024


Because of the feature of python extension, which is Activate Environments in Terminal Using Environment Variables, python extension will delete an environment variable
$CONDA_PREFIX,the show environment contributions file looks like this:
you can see there isn't a variable named CONDA_PREFIX, instead there are CONDA_PREFIX_2andCONDA_PREFIX_3.
this leads to crash of conda
So could you please help solve this question? It's really annoying. My current solution is add
export CONDA_PREFIX=/home/wangzihan/miniconda3in .bashrc