From bd9f3a89bd1564c97f47fb01a5a1e95ba3f108ed Mon Sep 17 00:00:00 2001 From: fabcor Date: Fri, 20 Sep 2024 16:53:20 +0200 Subject: [PATCH] Fix docs for dev env with specific Python This fixes the instructions for switching to a specific Python version in the development conda environment. GitHub: fix https://github.com/mxcube/mxcubeweb/issues/1384 --- docs/source/dev/environment.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/source/dev/environment.md b/docs/source/dev/environment.md index 98370e591..e89735cc5 100644 --- a/docs/source/dev/environment.md +++ b/docs/source/dev/environment.md @@ -49,16 +49,17 @@ It can be changed on the command line with `--name `. ``` cd mxcubeweb -conda env create -f conda-environment.yml +conda env create --file conda-environment.yml # or (to pass a different name) -conda env create -f conda-environment.yml --name another_name +conda env create --file conda-environment.yml --name another_name ``` -To choose a specific Python version when creating the conda environment, -for example Python 3.9, one can use a command such as the following: +To switch to a specific Python version inside the conda environment, +one can additionally use a command such as the following after environment creation, +for example for Python 3.9: ``` -conda env create -f conda-environment.yml python=3.9 +conda install --name mxcubeweb 'python=3.9' ``` ### 4. Activate the environment