学习小组Day3笔记--蓝天

conda

  • linux app store

在linux中安装miniconda

  1. 确认有压缩软件(bzip2),如无,则输入命令
    yum install -y bzip2
  2. 网站获得miniconda的url
  3. 得到安装包,sh脚本
    wget url
  4. 安装sh
    bash **.sh
  5. 激活
    source ~/. bashrc

安装软件

  1. 添加国内镜像
    conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/ conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/ conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/bioconda/ conda config --set show_channel_urls yes
  2. 查看信息
    conda list
    conda search 文件名 -y
  3. 安装删除软件
    conda install 软件名
    conda remove 软件名

改变conda环境

  • 因为不同项目可能会需要不同版本的同一软件
  1. 新建
    conda create -n 文件名
  2. 激活
    conda activate 文件名
  3. 删除
    conda remove -n 文件名 --all
  4. 查看conda环境
    conda info --envs
  5. 卸载某软件
    conda remove -n 文件名 软件名 -y
  6. 安装某软件
    conda create -n 文件名 python=3 软件名 -y

你可能感兴趣的:(学习小组Day3笔记--蓝天)