I encountered the same problem with VSCode, and I resolved it by adding the following path to the system environment. After that restart VSCode and everything is OK.
C:\Users\<Your user name>\Anaconda3\Library\bin
If the anaconda was not installed in the default directory, please find your own Anaconda3\Library\bin
.