【Linux】在Ubuntu上安装和使用miniconda

安装miniconda

1. 下载最新的安装文件。在命令行中输入以下命令即可:

wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh

2. 给下载下来的安装文件添加执行权限

sudo chmod +x Miniconda3-latest-Linux-x86_64.sh

3. 运行安装脚本进行安装。一般来说在linux系统下,我们会把第三方软件和库安装在/opt/文件夹下。该文件夹一般只有root拥有写权限,所以我们在执行时加上sudo,以root的身份来运行

sudo ./Miniconda3-latest-Linux-x86_64.sh

4. 运行后出现如下提示

Welcome to Miniconda3 py39_4.11.0

In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue

我们按回车键继续,之后会出现一个用户协议,按空格键直到协议最底部,然后输入“yes”接受协议,开始安装。之后需要确认想要安装的目录

Miniconda3 will now be installed into this location:
/root/miniconda3

  - Press ENTER to confirm the location
  - Press CTR

你可能感兴趣的:(ubuntu,linux,运维,python)