How to install “CONDA command not found” in MAC Anaconda

Geeks, please accept the hero post of 2021 Microsoft x Intel hacking contest>>>

This problem may occur when the official website download package is installed directly, which is mainly due to the configuration of environment variables

Generally, we add environment variables by editing . Bash_ Profile or . Bashrc, insert the following code into the file

export PATH=”~/anaconda/bin:$PATH”

But it still prompts “CONDA command not found”

Solution:

The source of this problem is that my terminal is iterm2, with Zsh and oh my Zsh installed. Since then, when I open the command line, I don’t execute ~ /. Bash_ If you want this file to be valid, modify the configuration file of Zsh

Edit ~ /. Zshrc and add a line to the file:

source ~/.bash_ profile

Author: Star blessing

Link: https://www.jianshu.com/p/e84cda5c09ca

Source: Jianshu

The copyright of the simplified book belongs to the author. For any reprint, please contact the author for authorization and indicate the source.

Similar Posts: