Zsh: Conda/Pip installs command not found

后端 未结 21 1737
忘掉有多难
忘掉有多难 2020-12-02 05:27

So I installed Anaconda and everything is working. After I installed it I decided to switch to oh-my-zsh. I am now getting:

zsh         


        
相关标签:
21条回答
  • 2020-12-02 06:21

    I simply added the anaconda3 path to $PATH in .zshrc which did the trick for.

    My environment : Catalina / clean Anaconda install / iTerm / zsh / oh-my-zsh

    First locate your conda installation:

    > find ~/ -name 'conda' -print
    

    (on my system: ~/opt/anaconda3/bin/conda)

    Then add that path to PATH in the .zshrc file

    export PATH="opt/anaconda3/bin":$PATH
    
    0 讨论(0)
  • 2020-12-02 06:21

    FYI for anyone having this same issue keep in mind that you need to make sure that you have the right version of anaconda in that export path:

    anaconda2 or anaconda3 
    

    Spent way too long on that minor issue.

    0 讨论(0)
  • 2020-12-02 06:22

    If this problem occurs on a mac, then type the following commands:

    source <path to conda>/bin/activate
    conda init zsh
    

    This will modify your zshrc accordingly (or create it if it does not exist).

    This solution comes from the official anaconda doc.

    0 讨论(0)
提交回复
热议问题