I am trying to build a basic machine learning algorithm, and to do so I am using the Anaconda interpreter for Python. However, even though Visual Studio Code appears to have recognized Conda as the interpreter, and I have the Anaconda 3 shell working as a separate application, I cannot get Conda to work in Visual Studio Code.
Whenever I try to check for Conda, I get the following error:
conda : The term 'conda' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ conda activate base
+ ~~~~~
+ CategoryInfo : ObjectNotFound: (conda:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
I have tried the fixes linked here: 'Conda' is not recognized as internal or external command
However, they did not work for me. I tried setting Conda to my path, yet I still got the same error.
Try the following:
conda activate your-env
code