【发布时间】:2022-07-15 19:35:30
【问题描述】:
如果这个问题已经被提出,我们深表歉意。
我正在尝试安装 Anaconda,这是文件 Anaconda3-2022.05-Linux-x86_64。但是,当我尝试为我的安装指定一个不同的目录时,我得到了这个错误。
ERROR: Cannot install into directories with spaces
这些是命令。
Anaconda3 will now be installed into this location:
/home/gelsyt/anaconda3
- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below
[/home/gelsyt/anaconda3] >>> /media/gelsyt/New Volume/Ubuntu HDD/Applications
ERROR: Cannot install into directories with spaces
我知道这是因为“New Volume”和“Ubuntu HDD”中的空格,我只是想知道是否有绕过这个或允许吗?
【问题讨论】:
-
Hacky,但安装到没有空格的软链接位置可能会起作用。
-
我需要在不同的路径上安装它的原因是因为我需要在我的硬盘上拥有 anaconda 文件,因为我安装了 ubuntu 的 SSD 上运行不足。所以我尝试在我的硬盘中指定路径。
-
您尝试过软链接吗?
ln -s '/path/that has/spaces' /softlink/path然后安装到软链接路径。此外,如果空间是问题,请务必将envs_dirs和pkgs_dirs设置为指向您的外部驱动器,否则您将写入用户主页。 -
嗨!我该怎么做呢?我应该在哪里输入命令?我如何将它指向外部驱动器?对不起
-
你的意思是配置变量?文档中对此进行了介绍:docs.conda.io/projects/conda/en/latest/user-guide/configuration/…
标签: anaconda