Linux:Conda没有安装Anaconda

问题描述 投票:1回答:1

我根据官方documentation为python2安装了Anaconda。最后,我收到了有关安装成功的消息。要检查我输入的ipython并且它的终端显示成功,但在做conda --version时没有任何结果。我检查过以下内容:

  1. which python:它给/home/username/anaconda2/bin/python
  2. sha下载包:这是正确的
  3. 其他Anaconda安装包(ipython):它的终端出现了
  4. which conda/home/username/anaconda2/bin/conda
  5. 封闭终端并再次打开它(在文档中提到)。关机后也检查了!
  6. 在做anaconda-navigator以下消息来: Please activate the conda root enviroment properly before running the anaconda-navigator command. To activate the environment please open a terminal and run: source /home/username/anaconda2/bin/activate root For more information please see the documentation at: https://docs.anaconda.com/anaconda/navigator/

按照上面的建议,没有任何反应,问题仍然存在。由于我是新手,可能会遗漏一些感情,请建议?

python linux machine-learning anaconda conda
1个回答
0
投票

我在Ubuntu 17.04 x64上遇到了完全相同的问题。在我的例子中,它是使用不同于默认值(bash)的shell。我使用我的ZSH shell安装了程序。在安装过程中,它会询问:

您是否希望安装程序在/home/user/.bashrc中将Anaconda <2或3>安装位置添加到PATH?

这让我尝试使用bash shell运行Anaconda Navigator(只需使用bash命令切换)。是的,它有效。

如果你查看.bashrc,你会注意到安装程序附加了如下内容:

export PATH="/home/user/anaconda2/bin:$PATH"

如果您将路径导出到ZSH(或您使用的任何其他shell),那么它也将与您的shell一起使用。在ZSH的情况下,只需将导出PATH行复制到.zshrc的末尾

© www.soinside.com 2019 - 2024. All rights reserved.