Zsh: Conda/Pip installs command not found

后端 未结 21 1949
忘掉有多难
忘掉有多难 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:06

    1. Find the right version of your anaconda

    2. Put it to ~/.zshrc via command vim ~/.zshrc

      • Anaconda 2 export PATH="/User//anaconda2/bin:$PATH"
      • Anaconda 3 export PATH="/User//anaconda3/bin:$PATH"
      • Or if you install Anaconda in root directory:
      • Anaconda 2 export PATH="/anaconda2/bin:$PATH"
      • Anaconda 3 export PATH="/anaconda3/bin:$PATH"
    3. Restart the zsh source ~/.zshrc

提交回复
热议问题