How to Remove (base) from Terminal Prompt After Updating Conda: A Guide

Conda is a popular package, dependency, and environment management system for any language—Python, R, Ruby, Lua, Scala, Java, JavaScript, C/ C++, FORTRAN. It’s widely used by data scientists and developers for its simplicity and versatility. However, after updating Conda, you may notice (base) appearing in your terminal prompt. This post will guide you on how to remove (base) from your terminal prompt after updating Conda.

Conda is a popular package, dependency, and environment management system for any language—Python, R, Ruby, Lua, Scala, Java, JavaScript, C/ C++, FORTRAN. It’s widely used by data scientists and developers for its simplicity and versatility. However, after updating Conda, you may notice (base) appearing in your terminal prompt. This post will guide you on how to remove (base) from your terminal prompt after updating Conda.

Understanding the (base) in Terminal Prompt

Before we dive into the solution, let’s understand why (base) appears in your terminal prompt. When you update Conda, it automatically activates the base environment upon startup. This is indicated by the (base) prefix in your terminal. While it’s not harmful, it can be distracting or unnecessary for some users.

Step-by-Step Guide to Remove (base) from Terminal Prompt

Step 1: Open the Terminal

The first step is to open your terminal. This process varies depending on your operating system:

  • Windows: Press Win + X and choose either Command Prompt or PowerShell.
  • MacOS/ Linux: Press Ctrl + Alt + T or search for Terminal in your applications.

Step 2: Deactivate Auto-Activation of Conda Environment

To prevent Conda from automatically activating the base environment, run the following command:

conda config --set auto_activate_base false

This command sets the auto_activate_base option to false. Now, Conda will not automatically activate the base environment when you open a new terminal window.

Step 3: Close and Reopen Terminal

After running the command, close your terminal and reopen it. You should no longer see the (base) prefix in your terminal prompt.

Reverting the Changes

If you want to revert this change and allow Conda to auto-activate the base environment, you can run the following command:

conda config --set auto_activate_base true

This command sets the auto_activate_base option back to true. When you open a new terminal window, Conda will automatically activate the base environment, and you’ll see the (base) prefix in your terminal prompt.

Conclusion

Conda is a powerful tool for managing packages and environments. However, the (base) prefix in the terminal prompt after updating Conda can be distracting for some users. By following the steps in this guide, you can easily remove (base) from your terminal prompt.

Remember, this change is reversible. If you want to revert back to the default settings, you can do so by setting auto_activate_base back to true.

We hope this guide was helpful. If you have any questions or run into any issues, feel free to leave a comment below.


About Saturn Cloud

Saturn Cloud is your all-in-one solution for data science & ML development, deployment, and data pipelines in the cloud. Spin up a notebook with 4TB of RAM, add a GPU, connect to a distributed cluster of workers, and more. Request a demo today to learn more.