下載軟件:
wget -c https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
安裝:
sh Miniconda3-latest-Linux-x86_64.sh
Welcome to Miniconda3 4.7.10
In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>>回車(chē)
Do you accept the license terms? [yes|no]
[no] >>>yes
Miniconda3 will now be installed into this location:
/home/annoconda/miniconda3
- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below
[/home/annoconda/miniconda3] >>>回車(chē)或者指定安裝路徑
Preparing transaction: done
Executing transaction: / WARNING conda.core.envs_manager:register_env(46): Unable to register environment. Path not writable or missing.
environment location: /home/annoconda/miniconda3
registry file: /home/annoconda/.conda/environments.txt done
installation finished.
Do you wish the installer to initialize Miniconda3
by running conda init? [yes|no]
[no] >>>no
# 這里我選擇no
# 剛開(kāi)始學(xué)的人最好輸入yes,目的是讓conda自動(dòng)給你配置環(huán)境變量
# 輸入yes的結(jié)果是:~/.bashrc這里文件里最后幾行多了conda的配置信息
###
###
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/zhaosl/miniconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/home/zhaosl/miniconda3/etc/profile.d/conda.sh" ]; then
. "/home/zhaosl/miniconda3/etc/profile.d/conda.sh"
else
export PATH="/home/zhaosl/miniconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
##
##
You have chosen to not have conda modify your shell scripts at all.
To activate conda's base environment in your current shell session:
eval "$(/home/annoconda/miniconda3/bin/conda shell.YOUR_SHELL_NAME hook)"
To install conda's shell functions for easier access, first activate, then:
conda init
If you'd prefer that conda's base environment not be activated on startup,
set the auto_activate_base parameter to false:
conda config --set auto_activate_base false
Thank you for installing Miniconda3!
#安裝好了
激活 conda
source ./miniconda3/bin/activate
#添加頻道
conda config --add channels bioconda
conda config --add channels conda-forge
#添加鏡像(清華源)
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
conda config --set show_channel_urls yes
#查看
conda config --get channels
or
cat ~/.condarc