Skip to content

Instantly share code, notes, and snippets.

@linhai86
Last active August 13, 2017 22:43
Show Gist options
  • Save linhai86/07b50537f2b21d2d07d04ffe69f97b5c to your computer and use it in GitHub Desktop.
Save linhai86/07b50537f2b21d2d07d04ffe69f97b5c to your computer and use it in GitHub Desktop.
conda info
conda update conda
conda update anaconda

conda info --envs                             # List all environments.
conda list                                    # List all packages and versions installed in active environment.
conda create --prefix ~/bio-env biopython     # Create an environment named bio-env in your home directory and install the biopython.
conda create --name bio-env biopython         # Create an environment in default directory.
source activate ~/bio-env                     # Activate env.
source deactivate                             # Deactivate env.
conda remove --prefix ~/bioenvcopy --all      # Remove env method1.
rm -rf ~/bioenvcopy                           # Remove env method2.

conda env export > environment.yml            # Export all packages.
conda env create -f environment.yml           # Create the env with required packages.

conda search numba                            # Search packages.

conda install jupyter                         # Install packages.
conda install --prefix ~/bio-env toolz        # Install packages into a different env.
conda install -c conda-forge boltons          # Install packages from a specific channel.
conda update toolz                            # Update packages.
conda remove --prefix ~/bio-env toolz boltons # Remove packages.

conda create --prefix ~/py34 python=3.4       # Install different python.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment