0

I am running a simple c++ code on Visual Studio and execution is also successful but this red thing appears . How to solve it ?

Text written in red in image is :-

conda : the term 'conda'is not recognized as the name of 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

enter image description here

drescherjm
  • 10,365
  • 5
  • 44
  • 64
Andrew
  • 49
  • 4
  • 4
    Unreadable. Please avoid posting images, instead copy'n paste the text, using correct formatting. – kebs May 18 '21 at 13:18
  • 2
    Assuming you installed conda, you need edit your PATH environment variable such that the path to the executable is in one of the folders listed in the PATH. If it is already so then you may want to logout then login for this to activate. – drescherjm May 18 '21 at 13:18
  • this looks like output generated from the program you run. You need to read documentation of the library you are using or inspect your code to know where it comes from – 463035818_is_not_an_ai May 18 '21 at 13:18
  • Please paste the text. I can't read that, and if I could, I can't copy/paste any of it. – Drew Dormann May 18 '21 at 13:19
  • This is just a case of not knowing how to use the command line / not understanding how the `PATH` environment variable is used by the OS to find the location of the executable. Here is some info on how to set this: [https://helpdeskgeek.com/windows-10/add-windows-path-environment-variable/](https://helpdeskgeek.com/windows-10/add-windows-path-environment-variable/) – drescherjm May 18 '21 at 13:19
  • @kebs I have edited the post . Kindly revisit it again. – Andrew May 18 '21 at 13:32
  • Related if not a duplicate: [https://stackoverflow.com/questions/44597662/conda-command-is-not-recognized-on-windows-10](https://stackoverflow.com/questions/44597662/conda-command-is-not-recognized-on-windows-10) – drescherjm May 18 '21 at 13:34
  • I have already told you the solution more than once. – drescherjm May 18 '21 at 13:36
  • Does this answer your question? [The term 'ng' is not recognized as the name of a cmdlet](https://stackoverflow.com/questions/44958847/the-term-ng-is-not-recognized-as-the-name-of-a-cmdlet) –  May 18 '21 at 13:38
  • This is not answerable without any code. And what has Conda (which is Python-related) anything to do with C++? – kebs May 18 '21 at 13:38
  • You can use `conda` to install c++ libraries. – drescherjm May 18 '21 at 13:41

0 Answers0