• conda安装的使用


    1.下载地址

    手动下载:官方地址:https://repo.anaconda.com/archive/index.html

    服务器上直接下载:

    # 这里的Anaconda3-2021.05-Linux-x86_64.sh是在官网上选择好的conda的版本
    wget -c https://repo.anaconda.com/archive/Anaconda3-2021.05-Linux-x86_64.sh
    
    • 1
    • 2
    2.参考文章

    https://blog.csdn.net/weixin_40816738/article/details/130684650

    3.安装
    # 一般正常yes,没什么意外情况
    sh Anaconda3-2021.05-Linux-x86_64.sh
    
    • 1
    • 2
    4.添加到环境变量
    # 编辑/etc/profile,并在末尾添加
    export PATH=$PATH:${conda的安装位置}/bin
    
    # 添加完保存再source /etc/profile,conda -V检查一下
    
    • 1
    • 2
    • 3
    • 4
    5.配置镜像
    channels:
      - http://mirrors.aliyun.com/anaconda/cloud/stackless
      - https://mirrors.aliyun.com/anaconda/cloud/simpleitk
      - https://mirrors.aliyun.com/anaconda/cloud/rdkit
      - https://mirrors.aliyun.com/anaconda/cloud/rapidsai
      - https://mirrors.aliyun.com/anaconda/cloud/qiime2
      - https://mirrors.aliyun.com/anaconda/cloud/pyviz
      - https://mirrors.aliyun.com/anaconda/cloud/pytorch3d
      - https://mirrors.aliyun.com/anaconda/cloud/pytorch-test
      - https://mirrors.aliyun.com/anaconda/cloud/pytorch
      - https://mirrors.aliyun.com/anaconda/cloud/psi4
      - https://mirrors.aliyun.com/anaconda/cloud/plotly
      - https://mirrors.aliyun.com/anaconda/cloud/omnia
      - https://mirrors.aliyun.com/anaconda/cloud/ohmeta
      - https://mirrors.aliyun.com/anaconda/cloud/numba
      - https://mirrors.aliyun.com/anaconda/cloud/msys2
      - https://mirrors.aliyun.com/anaconda/cloud/mordred-descriptor
      - https://mirrors.aliyun.com/anaconda/cloud/menpo
      - https://mirrors.aliyun.com/anaconda/cloud/matsci
      - https://mirrors.aliyun.com/anaconda/cloud/intel
      - https://mirrors.aliyun.com/anaconda/cloud/idaholab
      - https://mirrors.aliyun.com/anaconda/cloud/fermi
      - https://mirrors.aliyun.com/anaconda/cloud/fastai
      - https://mirrors.aliyun.com/anaconda/cloud/dglteam
      - https://mirrors.aliyun.com/anaconda/cloud/deepmodeling
      - https://mirrors.aliyun.com/anaconda/cloud/conda-forge
      - https://mirrors.aliyun.com/anaconda/cloud/caffe2
      - https://mirrors.aliyun.com/anaconda/cloud/c4aarch64
      - https://mirrors.aliyun.com/anaconda/cloud/bioconda
      - https://mirrors.aliyun.com/anaconda/cloud/biobakery
      - https://mirrors.aliyun.com/anaconda/cloud/auto
      - https://mirrors.aliyun.com/anaconda/cloud/Paddle
      - https://mirrors.aliyun.com/anaconda/pkgs/r
      - https://mirrors.aliyun.com/anaconda/pkgs/msys2
      - https://mirrors.aliyun.com/anaconda/pkgs/main
      - https://mirrors.aliyun.com/anaconda/pkgs/free
    show_channel_urls: true
    
    ssl_verify: true
    allow_conda_downgrades: true
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    6.常用命令
    # 创建虚拟环境
    conda create -n ${虚拟环境名称} ${python==3.7}
    
    # 激活环境
    conda activate ${虚拟环境名称}
    
    # 退出环境
    conda deactivate
    
    # 查看虚拟环境
    conda info --envs
    
    # 删除虚拟环境
    conda remove -n name --all
    
    # 删除所有的安装包及cache(索引缓存、锁定文件、未使用过的包和tar包)
    conda clean -y --all
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
  • 相关阅读:
    如何通过Java8新特性Optional类来有效防止空指针异常
    SQL Server教程 - T-SQL-编程基础
    【Java】nextInt()后面紧接nextLine()读取不到数据/InputMismatchException异常的解决方案
    Linux python2 python3 切换
    Spring Boot与Shiro实现权限管理03
    关系抽取:传统:UniRel: Unified Representation and Interaction for Joint Relational
    【附源码】Python计算机毕业设计宿舍管理系统设计
    Spring框架详解
    06-线程池(3大方法、7大参数,4种拒绝策略)
    2022-11-30 Github Forking 工作流模式
  • 原文地址:https://blog.csdn.net/zj20142213/article/details/133775432