skip to Main Content

All of a sudden I have duplicated environments, all with lower case letters. In VS Code only the lowercase letters show up now and are not working (starting kernel forever…)n

I am working with an Anaconda installation on Windows and a Miniconda in WSL2 Ubuntu. No problems in WSL2

# conda environments:
#
base                  *  F:Anaconda
pto                      F:Anacondaenvspto
py10                     F:Anacondaenvspy10
rel                      F:Anacondaenvsrel
selenium                 F:Anacondaenvsselenium
tfgpu                    F:Anacondaenvstfgpu
torch                    F:Anacondaenvstorch
pto                      f:Anacondaenvspto
py10                     f:Anacondaenvspy10
tfgpu                    f:Anacondaenvstfgpu
torch                    f:Anacondaenvstorch

Any thoughts on this?

This issue did not help https://github.com/conda/conda/issues/11501

When I create an environment from VS Code GUI, it is generated with a lower case drive letter.

2

Answers


  1. This issue is described in a couple of GitHub issue tickets:

    Various users have suggested in those issue tickets that they were able to work around the issue by deleting the duplicates from the .conda/environments.txt file under their user home folder. Several other users said that that didn’t work for them, but it’s worth a try since it worked for some people. Some users also needed to change the environment folder name in .conda/envs.

    If various different tools are creating the environments with different casings, then if possible, just stick to using one of those tools for creating environments until the situation gets better.

    Login or Signup to reply.
  2. Completely uninstall vscode, then use the interface command to create the environment.

    enter image description here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search