Linux下安装conda并且导出conda配置文件

Linux下安装conda

  • 下载
    wget -c https://repo.anaconda.com/archive/Anaconda3-2021.05-Linux-x86_64.sh
  • 给执行权限
    chmod 775 Anaconda3-2021.05-Linux-x86_64.sh
  • 执行安装过程
    bash Anaconda3-2021.05-Linux-x86_64.sh
  • 验证是否安装成功
    关闭终端,然后再打开终端。
    conda --version
  • pycharm中conda路径设置
    /home/dragon/anaconda3/bin/conda

导出conda配置

https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#creating-an-environment-with-commands

If you already have an environment.yml file in your current directory, it will be overwritten during this task.

  1. Activate the environment to export: conda activate myenv
    Replace myenv with the name of the environment.
  2. Export your active environment to a new file:
    conda env export > environment.yml
    This file handles both the environment’s pip packages and conda packages.
  3. Email or copy the exported environment.yml file to the other person.

猜你喜欢

转载自blog.csdn.net/dragon_T1985/article/details/120463518