Skip to content

Commit c95edd3

Browse files
committed
markdown source builds
Auto-generated via `{sandpaper}` Source : a28d5af Branch : main Author : Andrew Gait <andrew.gait@manchester.ac.uk> Time : 2026-04-22 16:13:02 +0000 Message : Merge pull request #91 from UoMResearchIT/85-conda-env-export-is-outdated Update instructions to use conda export rather than conda env export
1 parent 087fd15 commit c95edd3

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

04-software_package_management.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ This contains similar information to the standard `conda list` command, but in a
395395
A better method is to use:
396396

397397
```bash
398-
conda env export
398+
conda export
399399
```
400400

401401
```output
@@ -421,12 +421,13 @@ dependencies:
421421
prefix: /home/mbessdl2/.conda/envs/myenv
422422
```
423423

424-
This will present the same information, but in the more readable [YAML](https://yaml.org/) format, and it will also include the channel information in the output. This information can be saved as a text file as before, and used to create a new environment using the command `conda env create`. However it is still operating system specific information.
424+
This will present the same information, but in the more readable [YAML](https://yaml.org/) format, and it will also include the channel information in the output. This information can be saved as a txt or yml file as before e.g. `conda export > envfile.yml`, and used to create a new environment using the command `conda env create` (see below). However it is still using operating system specific information.
425425

426426
To create a higher-level record of the environment you can use:
427427

428428
```bash
429-
conda env export --from-history
429+
conda export --from-history > envfile.yml
430+
more envfile.yml
430431
```
431432

432433
```output
@@ -464,7 +465,7 @@ The name that you give the environment does not have to be the same as the name
464465
- `conda install -n <env> <pacakge(s)>` installs packages in a pre-existing environment
465466
- `conda activate <env>` activates the named environment, giving access to the software installed there
466467
- `conda deactivate` deactivates the current environment
467-
- `conda env export --from-history > <file.yml>` creates a portable record of your current environment
468+
- `conda export --from-history > <file.yml>` creates a portable record of your current environment
468469
- `conda env create --file <file.yml> <env>` creates a new environment from an environment file
469470

470471
::::::::::::::::::::::::::::::::::::::::::::::::::

md5sum.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"episodes/01-introduction.md" "45f9d3a720eff2bfc316a2bbe0dafcd5" "site/built/01-introduction.md" "2026-04-21"
88
"episodes/02-dictionaries.md" "01d0b5ca498525f3fff069efae731735" "site/built/02-dictionaries.md" "2026-04-21"
99
"episodes/03-numpy_essential.md" "c4f2ca475b83d05cce060ffb311b8719" "site/built/03-numpy_essential.md" "2026-04-21"
10-
"episodes/04-software_package_management.md" "622f9a1071cc3c6a3a6f1fe3b85ae33c" "site/built/04-software_package_management.md" "2026-04-22"
10+
"episodes/04-software_package_management.md" "42f84af49a6bcd23958a42ba7592a2b6" "site/built/04-software_package_management.md" "2026-04-22"
1111
"episodes/05-defensive_programming.md" "906c151b83b81c929caae42af7fc942c" "site/built/05-defensive_programming.md" "2026-04-21"
1212
"episodes/06-units_and_quantities.md" "4d3277e812cc109804d1b798c9db1404" "site/built/06-units_and_quantities.md" "2026-04-22"
1313
"episodes/07-pandas_essential.md" "b1059ad5fe7b7c4fcaf16c49e8e44bc5" "site/built/07-pandas_essential.md" "2026-04-21"

0 commit comments

Comments
 (0)