Zsh: Conda/Pip installs command not found

后端 未结 21 1912
忘掉有多难
忘掉有多难 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条回答
  •  Happy的楠姐
    2020-12-02 06:05

    1. Open your ~./bashrc
    2. Find the following code (maybe something similar) that launches your conda:
    
        # >>> conda init >>>
        # !! Contents within this block are managed by 'conda init' !!
        __conda_setup="$(CONDA_REPORT_ERRORS=false '/anaconda3/bin/conda' shell.bash hook 2> /dev/null)" if [ $? -eq 0 ]; then
            \eval "$__conda_setup" else
            if [ -f "/anaconda3/etc/profile.d/conda.sh" ]; then
                . "/anaconda3/etc/profile.d/conda.sh"
                CONDA_CHANGEPS1=false conda activate base
            else
                \export PATH="/anaconda3/bin:$PATH"
            fi fi unset __conda_setup
        # <<< conda init <<<
    
    
    1. source ~/.zshrc
    2. Things should work.

提交回复
热议问题