bash Anaconda linux 安装:conda:找不到命令

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/43382645/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-18 16:01:30  来源:igfitidea点击:

Anaconda linux install: conda: command not found

pythonlinuxbashanaconda

提问by ocean800

So I installed Anaconda for Python 3.6 according to the instruction from the official downloadspage and also this.

所以我根据官方下载页面的说明安装了 Python 3.6 的 Anaconda以及这个.

I followed all the steps and when I was asked if I wanted to add the Anaconda3 install location to my bashrcI said yes. When I print out the contents of that file, I have:

我遵循了所有步骤,当我被问到是否要将 Anaconda3 安装位置添加到我的我时,bashrc我说是。当我打印出该文件的内容时,我有:

# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
   . /etc/bashrc
fi

# added by Anaconda 2.3.0 installer
export PATH="/home/username/anaconda/bin:$PATH"

# added by Anaconda3 4.3.1 installer
export PATH="/home/username/anaconda3/bin:$PATH"

So obviously, it's been added. However, when I run conda -V, I get:

很明显,它已被添加。但是,当我运行时conda -V,我得到:

bash: conda: commmand not found...

bash: conda: 找不到命令...

What else can be causing this?

还有什么可能导致这种情况?

回答by Burhan Khalid

You need to source the file, or open a new terminal instance, in order for the configuration to be applied:

您需要获取文件,或打开一个新的终端实例,以便应用配置:

source ~/.bashrc