Anaconda3 安装过程将安装置于意外目录中,并且 conda 命令在 Ubuntu focal 20 下不起作用
Anaconda3 installation procedure placed installation in unexpected directory and conda commands don't work under Ubuntu focal 20
我正在使用 Ubuntu 20 focal
,但在 Anaconda
安装过程和操作方面遇到问题。使用文件:Anaconda3-2020.07-Linux-x86_64.sh
和 运行 通过:sudo bash Anaconda3-2020.07-Linux-x86_64.sh
我在欢迎消息后按ENTER
,浏览所有协议消息并按yes
我同意,然后看到响应:
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] >>>
然后我按 ENTER
,开始安装,现在在
有一个安装
$ sudo ls /root/
anaconda3
但是,在这之后预期会起作用的命令不起作用,例如;
$ conda list
conda: command not found
我无法使用 conda uninstall 命令,想知道安装过程应该如何进行。安装没有在 ~/
.
中放置任何文件
我也有一个 Julia lang
安装,environments.txt 文件中有对它的引用;
$ ls ~/.conda/
environments.txt
usr3@usr3:~$ ls ~/.conda/environments.txt
.conda/environments.txt
usr3@usr3:~$ head ~/.conda/environments.txt
/home/usr3/.julia/conda/3
usr3@usr3:~$ ls /home/usr3/.julia/conda/
3/ deps.jl
usr3@usr3:~$ ls /home/usr3/.julia/conda/3/
bin/ installer.sh
compiler_compat/ lib/
condabin/ LICENSE.txt
conda-meta/ pkgs/
condarc-julia.yml share/
envs/ shell/
etc/ ssl/
include/ x86_64-conda_cos6-linux-gnu/
OP 中的意外安装位置可能是由于 运行使用提升的权限 (sudo bash ...
) 设置安装程序。通常,只有系统管理员和其他管理 multi-user 安装的人员才需要提升权限。默认安装不应该使用 sudo
,这将导致安装在用户家下面的某个地方。
我有一段时间没有 运行 安装程序,但我认为它现在包含 conda init
的自动 运行 作为安装的一部分。如果没有,请参阅 this answer 了解如何设置 Conda 的 shell 功能(例如 conda activate
)的详细信息。
我正在使用 Ubuntu 20 focal
,但在 Anaconda
安装过程和操作方面遇到问题。使用文件:Anaconda3-2020.07-Linux-x86_64.sh
和 运行 通过:sudo bash Anaconda3-2020.07-Linux-x86_64.sh
我在欢迎消息后按ENTER
,浏览所有协议消息并按yes
我同意,然后看到响应:
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] >>>
然后我按 ENTER
,开始安装,现在在
$ sudo ls /root/
anaconda3
但是,在这之后预期会起作用的命令不起作用,例如;
$ conda list
conda: command not found
我无法使用 conda uninstall 命令,想知道安装过程应该如何进行。安装没有在 ~/
.
我也有一个 Julia lang
安装,environments.txt 文件中有对它的引用;
$ ls ~/.conda/
environments.txt
usr3@usr3:~$ ls ~/.conda/environments.txt
.conda/environments.txt
usr3@usr3:~$ head ~/.conda/environments.txt
/home/usr3/.julia/conda/3
usr3@usr3:~$ ls /home/usr3/.julia/conda/
3/ deps.jl
usr3@usr3:~$ ls /home/usr3/.julia/conda/3/
bin/ installer.sh
compiler_compat/ lib/
condabin/ LICENSE.txt
conda-meta/ pkgs/
condarc-julia.yml share/
envs/ shell/
etc/ ssl/
include/ x86_64-conda_cos6-linux-gnu/
OP 中的意外安装位置可能是由于 运行使用提升的权限 (sudo bash ...
) 设置安装程序。通常,只有系统管理员和其他管理 multi-user 安装的人员才需要提升权限。默认安装不应该使用 sudo
,这将导致安装在用户家下面的某个地方。
我有一段时间没有 运行 安装程序,但我认为它现在包含 conda init
的自动 运行 作为安装的一部分。如果没有,请参阅 this answer 了解如何设置 Conda 的 shell 功能(例如 conda activate
)的详细信息。