【miniforge】使用miniforge代替annaconda
1、官网
https://github.com/conda-forge/miniforge
2、下载
https://github.com/conda-forge/miniforge/releases
3、安装
Install
Unix-like platforms
Download the installer using curl or wget or your favorite program download files and run the script. For eg:
curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-$(uname)-$(uname -m).sh"
bash Mambaforge-$(uname)-$(uname -m).sh
or
wget "https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-$(uname)-$(uname -m).sh"
bash Mambaforge-$(uname)-$(uname -m).sh
Uninstallation
Uninstalling Miniforge means removing the files that were created during the installation process. You will typically want to remove:
- Any modifications to your shell rc files that were made by Miniforge:
# Use this first command to see what rc files will be updated
conda init --reverse --dry-run
# Use this next command to take action on the rc files listed above
conda init --reverse
- Remove the folder and all subfolders where the base environment for Miniforge was installed:
CONDA_BASE_ENVIRONMENT=$(conda info --base)
echo The next command will delete all files in ${CONDA_BASE_ENVIRONMENT}
# Warning, the rm command below is irreversible!
# check the output of the echo command above
# To make sure you are deleting the correct directory
rm -rf ${CONDA_BASE_ENVIRONMENT}
- Any global conda configuration files that are left behind.
echo ${HOME}/.condarc will be removed if it exists
rm -f "${HOME}/.condarc"
Windows
Download the installer and double click it on the file browser.
Non-interactive install
For non-interactive usage one can use the batch install option:
bash Miniforge3-Linux-x86_64.sh -b # or similar for other installers for unix platforms
Look at the extra options by running the following:
bash Miniforge3-Linux-x86_64.sh -h
or if you are on windows, run:
start /wait "" Miniforge3-Windows-x86_64.exe /InstallationType=JustMe /RegisterPython=0 /S /D=%UserProfile%\Miniforge3
Downloading the installer as part of a CI pipeline
If you wish to download the appropriate installer through the command line in a more automated fashion, you may wish to a command similar to
For Linux, any architecture, use the following command
wget -O Miniforge3.sh "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
For MacOSX, any architecture, use the following command
curl -fsSLo Miniforge3.sh "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-$(uname -m).sh"
This will download the appropriate installer for the present architecture with the filename Miniforge3.sh
. Run the shell script with the command in batch mode with the -b
flash:
bash Miniforge3.sh -b
Homebrew
On macOS, you can install miniforge with Homebrew by running
brew install miniforge
4、配置
主要是配置国内源
https://www.cnblogs.com/fireblackman/p/16422750.html
5、使用
mamba install -c conda-forge notebook mamba install -c conda-forge jupyterlab
参考链接:
https://zhuanlan.zhihu.com/p/379567315