Created
October 20, 2019 21:56
-
-
Save RaulMedeiros/a3c7e0376b5e31a9694d02b29919e183 to your computer and use it in GitHub Desktop.
Create Virtual Environments For Python With Conda
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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