Skip to content

Instantly share code, notes, and snippets.

@fcoclavero
Last active December 20, 2022 02:47
Show Gist options
  • Save fcoclavero/4c1241b1a95c6527d7370c9bb9234fcf to your computer and use it in GitHub Desktop.
Save fcoclavero/4c1241b1a95c6527d7370c9bb9234fcf to your computer and use it in GitHub Desktop.
Conda cheatsheet
# Backup environment to file
conda env export --channel $ENV_NAME --file "$FILE_PATH.yaml"
# Clone conda env
conda create --name myclone --clone root
conda create -n my_conda python=3 # Or python=2 for Python 2
source activate my_conda # On Windows, remove the word 'source'
conda install ipykernel # install Python kernel (ipykernel) into the conda environment
python -m ipykernel install # install python kernel into nteract's available kernel list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment