mac “conda command not found” 解决方法

一般我们添加环境变量的方法是编辑 strong.bash_profile 或 __.bashrc __,在文件里插入下面这段代码

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

可是还是提示“conda command not found”

解决方法:
这个问题的源头是这样的,我的终端是 iTerm2,安装了 zsh 和 oh-my-zsh,自此,我打开命令行的时候不在执行~/.bash_profile,如果要想让这个文件有效,那么修改 zsh 的配置文件:

编辑~/.zshrc,在文件里加入一行:

source ~/.bash_profile

转载:https://www.jianshu.com/p/e84cda5c09ca

你可能感兴趣的:(mac “conda command not found” 解决方法)