Post

Basic conda command

Basic command

get conda version

1
conda --version
1
conda -V

get help

1
2
conda --help
conda -h

get help for a specific command

1
2
conda update --help
conda remove --help

Environment management

1
conda env -h

create envirnment

1
conda create --name your_env_name

with specific python version

1
2
3
conda create --name your_env_name python=2.7
conda create --name your_env_name python=3
conda create --name your_env_name python=3.5

list all envirnment

1
2
conda info --envs
conda env list

enter a specific envirnment

1
activate your_env_name

exit

1
deactivate 

clone

1
conda create --name new_env_name --clone old_env_name 

delete an envirnment

1
conda remove --name your_env_name --all

Share an envirnment

  • share your current configuration to others
    1
    2
    
    activate target_env
    conda env export > environment.yml
    
  • then others can use environment.yml
    1
    
    conda env create -f environment.yml
    

    Package mangement

    list all packages in current envirnment

    1
    
    conda list
    

    list other envirnment

    1
    
    conda list -n your_env_name
    
This post is licensed under CC BY 4.0 by the author.