ahmadabdullah247
ahmadabdullah247

Reputation: 341

Conda command not working on macOS

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. enter image description here

Upvotes: 1

Views: 12255

Answers (1)

hnicke
hnicke

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

Related Questions