本文为记录在Ubuntu22.04下安装miniconda,并为普通用户提供使用conda的权限。
一、安装miniconda
- 使用命令下载安装文件,注意,如果想要所有用户都能使用虚拟环境,建议这里先使用root用户进行这一部分的安装操作,并且,安装的路径必须是所有用户都可以访问的,不能是在/root下:
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
2. 使用命令修改文件为可执行文件:
chmod +x Miniconda3-latest-Linux-x86_64.sh
3. 运行可执行文件:
./Miniconda3-latest-Linux-x86_64.sh
稍后会展示一些条款,按住Enter不放,条款很多