Cannot install into directories with spaces

anacondalogo  

 Anacondaをインストールする際に「Cannot install into directories with spaces(スペースを含むディレクトリにはインストールできません)」というエラーが出る場合、インストール先のパスにスペースが含まれていることが原因。

 

Anacondaはスペースを含むパスへのインストールをサポートしていないため。

 

対処法

これを解決するためには、スペースを含まないパスにインストールする必要があるので、インストール先を直接手動で指定してインストールする。

 

指定してインストール

bash Anaconda3-2023.09-0-Linux-x86_64.sh -p /home/username/anaconda3

 

インタラクティブに指定

bash Anaconda3-2023.09-0-Linux-x86_64.sh

 

Anaconda3 will now be installed into this location:
/home/username/anaconda3

- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below

[/home/username/anaconda3] >> /home/username/my_anaconda3

一番下を選んで手動入力。