Conda安裝
以 miniconda 為例, 谷歌搜索 ”conda 清華“,復制最新的miniconda 鏈接
wget link
這是一個 xxx.sh 文件加載完成,類似安裝包。
bash miniconda-latest-xx.sh
最后一步,激活
source ~/.bashrc
安裝完成!
添加鏡像
# 使用中科大的鏡像
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/cloud/bioconda/
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes
conda 常用指令
conda list #顯示所有的軟件
conda install fastqc=0.11.7 -y # 安裝指定版本的fastqc,無需再詢問
conda create -n day3 python=3 fastqc abricate -y 創(chuàng)建名字為day3的環(huán)境,指定python版本是3,安裝fastqc 和abricate 兩個軟件,無需詢問。
conda activate/deactivate day3
心得體會:以后我安裝軟件都要加上 -y