Powerline - how to remove “(e) base” from Terminal

2019-08-20 20:03发布

问题:

I've followed the instructions presented on:

  • https://medium.freecodecamp.org/jazz-up-your-bash-terminal-a-step-by-step-guide-with-pictures-80267554cb22

I've jazzed up my terminal, but am running into an issue where my terminal consistently shows (e) base as part of the prompt.

Google and https://powerline.readthedocs.io/en/master/ have not led me to an answer as of yet.

回答1:

Executing source deactivate removed (e) base.

Answer via: How to leave/exit/deactivate a python virtualenv?

If you are trying to leave an Anaconda environment, the procedure is a bit different: run the two-word command source deactivate since they implement deactivation using a stand-alone script.