3

I installed Anaconda (added to path) but when I try to run Python from the cmd, I get the following message:

Warning:

This Python interpreter is in a conda environment, but the environment has not been activated. Libraries may fail to load. To activate this environment please see https://conda.io/activation_

I followed the link and tried to activate the environment, but my cmd then changes to (base) mode, which I am unfamiliar with.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
  • Related: *[Python is in a Conda environment, but it has not been activated in a Windows virtual environment](https://stackoverflow.com/questions/56679132/)* – Peter Mortensen Oct 26 '21 at 19:57

2 Answers2

2

Follow below steps

1)open cmd and type "conda activate base"

2)then type python

Which will satisfy your problem

Ratan Uday Kumar
  • 5,738
  • 6
  • 35
  • 54
Jay Tonde
  • 21
  • 2
  • 1
    'conda' is not recognized as an internal or external command, operable program or batch file. – pabrams Nov 16 '21 at 21:47
0

Refer https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html

Earlier versions of conda introduced scripts to make activation behavior uniform across operating systems. Conda 4.4 allowed conda activate myenv. Conda 4.6 added extensive initialization support so that conda works faster and less disruptively on a wide variety of shells (bash, zsh, csh, fish, xonsh, and more). Now these shells can use the conda activate command. Removing the need to modify PATH makes conda less disruptive to other software on your system. For more information, read the output from conda init --help.

One setting may be useful to you when using conda init is:

auto_activate_base: bool