Reputation: 341
I installed Anaconda on macOS. It installed successfully, but when I ran the command in terminal it does not recognize the command conda
. On my initial search, I found out I have look if the environment variable is set in .bash_profile
. As the following picture shows the path is all set, but I can not still run the command.
Upvotes: 1
Views: 12255
Reputation: 602
You are not using bash
but zsh
as your current shell.
zsh
does not source .bash_profile
- instead, it sources the .zprofile
file for its initialization.
So, just copy the export PATH=...
line to the .zprofile
file (create it if it does not exist). Logout and login, and it should work.
Upvotes: 8