I just bought a new MacBook running macOS Catalina version 10.15.5.
After installing Anaconda, Homebrew, Git, etc, I've noticed that the shell I'm running is not bash, rather it's zsh—which i'm clueless about.
Now everything i've installed worked fine with zsh; except when I tried to configure the terminal for better visualization when using git using udacity's terminal config (can be found here).
My trials to overcome this are as follows:
- I've used
chsh -s /bin/bashto force my default shell to be bash instead. Now the configuration works fine, but I cannot use thepipcommand or openjupyter notebookdirectly from the terminal. - I have tried to figure out the root cause, and it turns out that bash is running Python 2.7 while zsh is running Python 3.7.
- I then tried to install Python 3.7 using
brew install pythonand it installed Python 3.7 but stillpython --versionshows Python 2.7.
Note that Anaconda is installed in my home directory but python3, homebrew are installed in /usr/local/bin/. Should I remove anaconda from home directory and place it somewhere else? And if this is the case, why it is working for zsh then?