PATH different in VSCode (due to conda)

  system-variable, visual-studio-code, windows

I am trying to get my VSCode terminal to see a mingw installation.
When I run the command…

gcc --version

… in regular CMD, it works as expected.

However, when I use it in VSCode terminal, it isn’t found.

Upon checking, the PATH variables are slightly different across both terminals (CMD and VSCode).

I do have conda installed, and when I open the terminal in VSCode, it defaults to it. Doesn’t matter if I conda deactivate however; still have the same issue.

Thanks in advance.

Source: Windows Questions

LEAVE A COMMENT