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
>>>回車(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
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • 介紹 開(kāi)源包管理系統(tǒng)和環(huán)境管理系統(tǒng) ,包括多種語(yǔ)言的包安裝,運(yùn)行,更新,刪除,最重要的是可以解決包依賴問(wèn)題 支持語(yǔ)...
    白墨石閱讀 19,918評(píng)論 0 14
  • 有很多的生信軟件都可以通過(guò)conda安裝,省去了很多的安裝、修bug的煩惱。經(jīng)常是安裝到崩潰的軟件,conda一行...
    賣(mài)萌哥閱讀 870,342評(píng)論 79 468
  • 前言 為什么不出一個(gè)在mac下安裝conda和tensorflow的因?yàn)槲腋F呀。 Conda介紹 任何語(yǔ)言的包,依...
    逍遙嘆_64c6閱讀 7,537評(píng)論 0 4
  • 1. 初步認(rèn)識(shí) Anaconda Anaconda 是一個(gè)用于科學(xué)計(jì)算的Python發(fā)行版,支持 Linux, M...
    Jefitar閱讀 19,037評(píng)論 2 18
  • 生物信息學(xué)軟件錯(cuò)綜復(fù)雜,平臺(tái)依賴,庫(kù)依賴導(dǎo)致各種軟件安裝bug,為此我們這里介紹下比較常用軟件控制工具conda ...
    zhusitao閱讀 3,787評(píng)論 0 4

友情鏈接更多精彩內(nèi)容