美文网首页
conda 写出环境yaml配置文件用于新设备部署环境

conda 写出环境yaml配置文件用于新设备部署环境

作者: Norahd | 来源:发表于2022-04-09 23:52 被阅读0次

conda 高频应用命令

https://docs.conda.io/en/latest/miniconda.html  #conda 安装
rm -rf /mypath/minconda ~/.condarc ~/.conda ~/.continuum #conda 卸载
#conda 环境创建 软件安装
conda create -n 'U_env' python=2 -y #创建python2的环境
conda activate 'U_env'
conda search 'pack(r-pack)'
conda intall -c channel 'pack=version' #从指定channel 安装指定版本的软件
conda remove -n 'U_env' --all

写出conda 环境ymal配置文件

conda env export --file U_env.yml --name U_env #导出环境配置
conda env create  -f U_env.yml #新设备部署环境

常用conda channel 配置

channels:
  - conda-forge
  - bioconda
  - https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
  - defaults

相关文章

网友评论

      本文标题:conda 写出环境yaml配置文件用于新设备部署环境

      本文链接:https://www.haomeiwen.com/subject/dkimsrtx.html