只需要在命令行中运行 你安装的是anaconda2 就写 export PATH=~/anaconda2/bin:$PATH 你安装的是anaconda3 就写 export PATH=~/anaconda3/bin:$PATH