conda 安装使用

下载软件:

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
>>>回车

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] >>>回车或者指定安装路径

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
# 刚开始学的人最好输入yes,目的是让conda自动给你配置环境变量
# 输入yes的结果是:~/.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

你可能感兴趣的:(conda 安装使用)