According to documentation Installing on macOS we add add in ~/.zshrc instead of .bashrc or .bash_profile
Add export PATH="/<path to anaconda>/bin:$PATH" in ~/.zshrc
Or set the PATH variable: export PATH="/<path to anaconda>/bin:$PATH"
Replace “<path to anaconda>” with the actual path to your Anaconda installation.
This methods are working on ubuntu/Centos7/MacOS as well (just close/reset the terminal once you are completing the changes) than just type conda to test.
网友评论