Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save RaulMedeiros/a3c7e0376b5e31a9694d02b29919e183 to your computer and use it in GitHub Desktop.
Save RaulMedeiros/a3c7e0376b5e31a9694d02b29919e183 to your computer and use it in GitHub Desktop.
Create Virtual Environments For Python With Conda
# Create Virtual Environments For Python With Conda
## 1. Check conda is installed and in your PATH
conda -V
## 2. Check conda is up to date
conda update conda
## 3. Create a virtual environment for your project
conda create -n yourenvname python=x.x anaconda
## 4. Activate your virtual environment.
source activate yourenvname
# Install Dependencies
## 5. Install additional Python packages to a virtual environment.
conda install -n yourenvname [package]
# Shutdown Environment
## 6. Deactivate your virtual environment
source deactivate
## 7. Deactivate your virtual environment.
conda remove -n yourenvname -all
# source: https://uoa-eresearch.github.io/eresearch-cookbook/recipe/2014/11/20/conda/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment