Article to erase (base) that appears at the top of the terminal ↑ Who are you
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".
I'll erase it.
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.
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.
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