Search code examples
pythonanacondacondaminicondaanaconda3

conda environment name changes upon using conda activate


Output of conda info --envs: conda info --envs-o/p-1

I ran conda activate tfgpu (which is one of the existing environments, please refer to the above picture using the link). Then I ran conda info --envs, the output of which is as follows: conda info --envs-o/p-2

As you can see, the name of the base environment is no longer visible and when I use conda activate base, the environment isn't changing anymore.

I found a workaround for this, which is as follows:

  1. Run conda activate <base_env_path> from tfgpu environment
  2. Run conda activate base
  3. Finally , run conda info --envs. Output is: conda info --envs-o/p-1

My question: What should I do to make sure that conda doesn't change the name of the base environment, so that I wouldn't have to do steps 1-3 to resolve it?

Please note that I cannot post inline images as my reputation is quite low.


Solution

  • I have deleted the second virtual environment tfgpu and create a new one.