Skip to content

Instantly share code, notes, and snippets.

@rbhatia46
Created December 19, 2018 12:57
Show Gist options
  • Save rbhatia46/a408d5a0618ad465cb4693be92eabc3d to your computer and use it in GitHub Desktop.
Save rbhatia46/a408d5a0618ad465cb4693be92eabc3d to your computer and use it in GitHub Desktop.
Basic Anaconda Commands for managing Virtual Environments

Basic Anaconda Commands

  1. Create a New Virtual Environment
conda create --name project1 python=3.5.7 pip numpy 
  1. Activate a particular environment
activate project1
  1. Deactivate a particular environment and go back to root
deactivate
  1. Just Use a different version of Python with all anaconda default packages
conda create --name project2 python=2.7 anaconda
  1. Remove a particular Virtual Environment
conda remove --name project1 --all
  1. List all Environments on the system
conda info --envs
  1. Export an environment.yml file
conda env export > environment.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment