Manage Environments

  • create environment: conda create --name <new_env_name>
  • create environment with python 3.9: conda create --name <new_env_name> python=3.9
  • activate environment: conda activate <env_name>
  • deactivate (leave) environment: conda deactivate
  • list available environments: conda info --envs
  • remove environment: conda remove --name <env_name> --all


Other Commands

Rename Conda Environment

Rename <src_env> to <target_env>:

conda create --name <target_env> --clone <src_env>
conda remove --name <src_env> --all


Conda installation on Linux

  • download Miniconda (not Anaconda):
  • download the 64 bit Miniconda3 for the highest Python version of your architecture
  • change install file to executable: chmod +x
  • start installation: ./
  • use default settings
  • log out and back in to activate new settings

Windows Install

  • download Miniconda (not Anaconda):
  • download Miniconda3 for the highest Python version
  • preferably the 64 bit version
  • proxy setup
    • add the following content to the .condarc file
    • located at C:\Users\<User>
    • <user> and <pass> are optional
    • some https settings use the http protocol and not https
  http: http://[<user>:<pass>@]
  https: https://[<user>:<pass>@]
Last modified July 24, 2022: improve conda (06dc74e)