Posts conda 版本控制
Post
Cancel

conda 版本控制

  • conda 查看已有环境
    1
    
    conda info -e
    
  • 下载需要的python版本
    1
    2
    
    conda create -n name python=xx
    conda info --envs  显示已安装的所有环境配置
    
  • 激活刚才新建的python版本
    1
    
    conda activate name 
    
  • 查看版本内已安装的文件包
    1
    
    conda list
    
  • 更新与卸载包
    1
    2
    
    conda update xxx #更新xxx文件包
    conda uninstall xxx #卸载xxx文件包
    
  • 重命名与删除
    1
    2
    3
    4
    5
    6
    
     conda create --name newname --clone oldname //克隆环境
     conda remove -n name --all //彻底删除旧环境
    
     conda clean -p //删除没有用的包
     conda clean -t //tar打包
     conda clean -y -all //删除所有的安装包及cache
    
  • 直接安装 requirements.txt 环境
    1
    
    pip install -r requirements.txt
    
This post is licensed under CC BY 4.0 by the author.

Contents

Trending Tags