From 280fa5867c2bb088a4b40301041c2e28aa1e4fc6 Mon Sep 17 00:00:00 2001 From: junos Date: Thu, 24 Dec 2020 11:41:21 +0100 Subject: [PATCH] Create the environment from file. Add conda-forge as a channel for some packages. --- README.md | 19 ++++++++++--------- config/environment.yml | 1 + 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index b8c733f..1eb167f 100644 --- a/README.md +++ b/README.md @@ -4,16 +4,17 @@ All analysis for the STRAW project. To install first: -* Create a conda virtual environment with the correct Python version. +* Create a conda virtual environment from the `environment.yml` file. -```commandline -conda create --name straw2analysis python=3.9 +```shell +cd config +conda env create --file environment.yml conda activate straw2analysis ``` +If you have already created this environment, you can update it using: -* Next, install all necessary libraries. - -```commandline -cd config -conda install --file environment.yml -``` +```shell +conda deactivate +conda env update --file environment.yml +conda activate straw2analysis +``` \ No newline at end of file diff --git a/config/environment.yml b/config/environment.yml index c7700d5..3f3370b 100644 --- a/config/environment.yml +++ b/config/environment.yml @@ -1,6 +1,7 @@ name: straw2analysis channels: - defaults + - conda-forge dependencies: - python=3.9 - black