Skip to content

Instantly share code, notes, and snippets.

@geosharma
Last active December 9, 2023 15:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geosharma/11ecc92d01c868b12a1d6b8725c1dd94 to your computer and use it in GitHub Desktop.
Save geosharma/11ecc92d01c868b12a1d6b8725c1dd94 to your computer and use it in GitHub Desktop.
conda command snippets

Conda and Anaconda commands

A list of conda commands that I regularly use but keep forgetting how to use

Update conda

conda update conda

Conda create a new environment with desired python verion

conda create --name envname python=pythonversion If no python=pythonversion is given it will install the default python version for the installed anaconda or conda

List all environments

conda evn list

Delete an envnironment

conda env remove --name envname

Install a pacakge in a different environment

conda install --name envname pacakgename

Install a package from a particular channel

conda install --channel channelname pacakgename

Update package a specific package

conda update packagename

Update all packages in the current environment

conda update --all

Update all packages in a particular environment

conda update -n envname --all

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