
What is (base) ?
If you are wondering what the (base) prefix is before the zsh prompt and how did you end up getting it? Well you have it because Anaconda has been installed on your device and "base" is the default Python environment from conda.
How to remove (base) from Mac Terminal?
Removing (base) prefix is very simple, all you need to do is deactivate the default conda environment.
conda deactivate
If you want it back in the future, run the below command to activate the base environment back,
conda activate base
Note that this is not a permanent way to get the base environment disabled. You can do that by adding the deactivate command in the .zshrc profile file.
Disable (base) env using .zshrc file
- Open Terminal App,
- Open the .zshrc file,
nano ~/.zshrc - Now add the following line at the end.
conda deactivate - Reload the Zsh shell by either typing zsh or,
source ~/.zshrc - You will see that the base prefix is gone!
Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!