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.
- Activate the environment to export: conda activate myenv
Replace myenv with the name of the environment. - 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. - Email or copy the exported environment.yml file to the other person.