Error while Running Python program on vs code due to Conda

It seems like you don’t have conda installed on your system so the text in red is letting you know that.

Conda is an environment and package management tool for Python applications. You can install conda for your operating system by following the instructions in the site linked above. But keep in mind, I’ve linked miniconda which is a minimal setup of the Anaconda package and environment management tool.

Have you created a new virtual environment to install your dependencies for your current Python code? If no, I’d highly recommend creating one, for more information you can read through this blog post.

You could try to find out if you have conda installed by running this command in your terminal/command prompt:

conda --version

If you see something like “conda version-number” displayed after you ran the command, you have conda installed.

Then, since it seems like you’ve activated an environment and left that activated. So you can deactivate the currently active environment and activate other environments to be able to run your other projects. To deactivate an environment, you can run the below command in your terminal:

conda deactivate <name-of-the-env>

To get the name of your environment, run this:

conda env list

Try these steps and see if you’re able to run your code.

Read more here: Source link