Skip to content

Instantly share code, notes, and snippets.

@ctufts
Last active January 3, 2024 03:36
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 9 You must be signed in to fork a gist
  • Save ctufts/fcd8bfafe7b5e6784a0a043bd4b52844 to your computer and use it in GitHub Desktop.
Save ctufts/fcd8bfafe7b5e6784a0a043bd4b52844 to your computer and use it in GitHub Desktop.
List of commonly used commands in anaconda
  • conda info --envs : lists all environments
  • source activate <env name>: activate an environment
  • source deactivate: deactivate an environment
  • conda list : list all packages installed
  • conda create --name <env name> python=3 astroid babel : create new environment, specify version of python, and install packages
  • WINDOWS NOTE: SOURCE is not recognized. When deactivating and activating in the anaconda command prompt, skip source and just type deactivate or activate depending on what you are trying to do.
  • conda env export > environment.yml: export conda environment requirements list to a file
  • conda env remove -n ENV_NAME : delete environment
@joe-eis
Copy link

joe-eis commented Jan 23, 2023

source is on pip. conda activate ENV_NAME

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