【问题标题】:Error: Cannot install into directories with spaces错误:无法安装到有空格的目录中
【发布时间】: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_dirspkgs_dirs 设置为指向您的外部驱动器,否则您将写入用户主页。
  • 嗨!我该怎么做呢?我应该在哪里输入命令?我如何将它指向外部驱动器?对不起
  • 你的意思是配置变量?文档中对此进行了介绍:docs.conda.io/projects/conda/en/latest/user-guide/configuration/…

标签: anaconda


【解决方案1】:

使用 ubuntu 提供的磁盘工具。对于 Ubuntu 15.10。在仪表板中搜索磁盘。打开磁盘->点击所需硬盘的设置。->编辑文件系统->更改所需名称。

(Credits)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-01-14
    • 1970-01-01
    • 1970-01-01
    • 2021-06-17
    • 1970-01-01
    • 1970-01-01
    • 2013-01-28
    • 1970-01-01
    相关资源
    最近更新 更多