Skip to content

Commit

Permalink
Fix docs for dev env with specific Python
Browse files Browse the repository at this point in the history
This fixes the instructions for switching to a specific Python version
in the development conda environment.

GitHub: fix mxcube#1384
  • Loading branch information
fabcor-maxiv committed Sep 20, 2024
1 parent 4ee4a21 commit fc523ee
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions docs/source/dev/environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,17 @@ It can be changed on the command line with `--name <env-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
Expand Down

0 comments on commit fc523ee

Please sign in to comment.