Conda#

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

Updates#

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

Installation#

Conda installation on Linux#

  • download Miniconda (not Anaconda): https://conda.io/en/latest/miniconda.html#windows-installers

  • download the 64 bit Miniconda3 for the highest Python version of your architecture

  • change install file to executable: chmod +x Miniconda3-latest-Linux-x86_64.sh

  • start installation: ./Miniconda3-latest-Linux-x86_64.sh

  • use default settings

  • log out and back in to activate new settings

Windows Install#

  • download Miniconda (not Anaconda): https://conda.io/en/latest/miniconda.html#windows-installers

  • 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

proxy_servers:
  http: http://[<user>:<pass>@]corp.com:8080
  https: https://[<user>:<pass>@]corp.com:8080