Let's erase the unintended (base) that appears in the terminal [Get out of the Conda environment]

What is this

Article to erase (base) that appears at the top of the terminal スクリーンショット 2020-05-15 20.31.39.png ↑ Who are you

What is this in the first place

Conda is a Python version control tool [^ 1]. It comes standard with the installation of Anaconda, a machine learning library greedy set. The state that (base) is out means that you are in the virtual environment provided by Conda. If there is no particular problem, you can leave it as it is, but it is inconvenient when you want to use a version control tool other than Conda (pipenv, poetry, etc.) or "I don't know what it is, but I want to delete it because I'm worried".

Let's erase

I'll erase it.

Temporarily erase

Execute the following command in the terminal.

Temporarily exit the virtual environment


$ conda deactivate

Now you're out of the virtual environment and you've erased the abomination (base). However, if you restart the terminal, the base may reappear. In that case, take the following actions.

Permanently erase (restorable)

Do not enter the virtual environment by default


$ conda config --set auto_activate_base False

Rewrite Conda's config to prevent it from entering the virtual environment by default. It should not appear even after rebooting.

Come back Conda

When returning to the opposite, it is as follows.

Re-enter the virtual environment


$ conda activate

[^ 1]: Version control tool: A system that manages the installation and deletion of libraries and the dependencies between libraries.

Recommended Posts

Let's erase the unintended (base) that appears in the terminal [Get out of the Conda environment]
How to delete "(base)" that appears in the terminal when Anaconda is installed on Mac
If the conda environment is strange, let's put it back in mac
Let's claim the possibility of pyenv-virtualenv in 2021
[AWS] Let's run a unit test of Lambda function in the local environment
Get the caller of a function in Python
Precautions when installing packages in the conda environment
[Django] Let's try to clarify the part of Django that was somehow through in the test
Let's get notified of the weather in your favorite area from yahoo weather on LINE!
Used from the introduction of Node.js in WSL environment
How to get the number of digits in Python
The story of building the fastest Linux environment in the world
[python] Get the list of classes defined in the module
[C language] [Linux] Get the value of environment variable
Get the size (number of elements) of UnionFind in Python
Let's use the open data of "Mamebus" in Python
Get the URL of the HTTP redirect destination in Python
Let's get notified of the weather in your favorite area from yahoo weather on LINE! ~ PART2 ~