Zsh: Conda/Pip installs command not found

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

    I had this problem on my Catalina OSX after I installed my Anaconda distribution as well.

    This solution worked for me on macOS Catalina as of October 19, 2019

    Step 1. Check if .bash_profile is available on your home folder, if not:

    • Go to Terminal
    • Type cd ~/ to go to your home folder (if you are not on your home folder)
    • Type touch .bash_profile to create your new file under the your home folder

    Step 2. Check if file .zshrc is available on your home folder, if not:

    • Go to terminal and type nano ~/.zshrc

    • Type in the following line into the newly created .zshrc file: source ~/.bash_profile

    • Now to save the file in nano just hit ctrl+X.

    • It will prompt "Save modified buffer (ANSWERING "No" WILL DESTROY CHANGES)?". Just type in Y

    Step 3. Check if .bash_profile and .zshrc files are created on your home folder. If yes, in terminal type in source ~/.zshrc

提交回复
热议问题