Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Linux上从主目录将anaconda安装到其他文件夹_Linux_Anaconda - Fatal编程技术网

在Linux上从主目录将anaconda安装到其他文件夹

在Linux上从主目录将anaconda安装到其他文件夹,linux,anaconda,Linux,Anaconda,我想将Anaconda安装到我的linux服务器上的另一个路径,例如/opt,但我不断收到错误:文件或目录已经存在:/opt,即使其中没有文件或目录。除非我将其安装在主文件夹中,否则它不允许我安装。您知道为什么以及如何解决此问题吗?您还需要提供它将创建的文件夹的名称,如: /opt/anaconda3 anaconda3文件夹尚不存在,但安装程序将创建该文件夹。在安装anaconda时,它将询问安装anaconda的路径,如下所示: Do you accept the license term

我想将Anaconda安装到我的linux服务器上的另一个路径,例如/opt,但我不断收到错误:文件或目录已经存在:/opt,即使其中没有文件或目录。除非我将其安装在主文件夹中,否则它不允许我安装。您知道为什么以及如何解决此问题吗?

您还需要提供它将创建的文件夹的名称,如:

/opt/anaconda3

anaconda3文件夹尚不存在,但安装程序将创建该文件夹。

在安装anaconda时,它将询问安装anaconda的路径,如下所示:

Do you accept the license terms? [yes|no]
Please answer 'yes' or 'no':'
>>> yes
Anaconda3 will now be installed into this location:
/root/anaconda3

  - Press ENTER to confirm the location
  - Press CTRL-C to abort the installation
  - Or specify a different location below
[/root/anaconda3] >>>  /opt/anaconda3
如果要在root/中安装它,请按enter键。但是如果你想把anaconda安装到另一个目录中。您可以指定路径和anconda3作为其中的目录名,如下所示:

Do you accept the license terms? [yes|no]
Please answer 'yes' or 'no':'
>>> yes
Anaconda3 will now be installed into this location:
/root/anaconda3

  - Press ENTER to confirm the location
  - Press CTRL-C to abort the installation
  - Or specify a different location below
[/root/anaconda3] >>>  /opt/anaconda3
按回车键。您将在终端中看到以下输出:

PREFIX= /opt/anaconda3
installing: python-3.6.3-hc9025b9_1 ...

这意味着它开始在指定的路径/dir上安装anaconda,即/opt/anaconda3。完成安装。

我也遇到了同样的问题,我想我是在最后按空格键,或者文件夹已经在那里了,我不得不删除它。