Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does '(base)' appear in my anaconda command prompt?

My anaconda command prompt now says:

(base) C:\users\user_name> 

I would like to know why (base) appears in front of the prompt. This started appearing since I created a virtual environment to run Django. If I enter 'deactivate' the prompt disappears but if I close the terminal and open a new terminal the 'base' is back again.

(base) C:\users\user_name> deactivate C:\users\user_name> 

The trouble is that this prompt does not recognize pip or any anaconda commands. I can run pip on the 'base' prompt, but not on the original one. I installed a module in '(base)...' using pip but this module is recognized by my ide.

conda list anaconda 

in '(base)..' gives th version of Anaconda as 4.4. without the base, it does not recognize conda. I have run pip and conda several times before this happened. I'm running Windows 10.

like image 305
vineeth venugopal Avatar asked Jul 25 '18 19:07

vineeth venugopal


People also ask

Why does my command prompt Say base?

"(base)" is displayed to tell you which environment you are in. "base" is the default environment.

How do you remove a conda base environment?

Same thing as create, you have to specify the name of the environment you wish to remove by using --name . (base) username ~ % conda env remove --name project-envRemove all packages in environment /Users/junetao/opt/anaconda3/envs/project-env: The project-env has been successfully removed from your environments.

How do you get back to base environment in Anaconda?

If you want to switch to another environment you could simply type: conda activate myenv within the base environment. Now when you deactivate myenv it will go back to base environment. When you are within an environment, the packages within that environment can be accessible.


1 Answers

Try this:

conda config --set auto_activate_base false 

The changeps1 only hide the command prompt, you still in this environment.

auto_activate_base can avoid entering the environment.

like image 198
Woko Avatar answered Sep 25 '22 06:09

Woko