Skip to content

Commit 6c18541

Browse files
committed
Update instructions to use conda export rather than conda env export
1 parent 61e8637 commit 6c18541

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

episodes/04-software_package_management.md

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

395395
```bash
396-
conda env export
396+
conda export
397397
```
398398

399399
```output
@@ -419,12 +419,12 @@ dependencies:
419419
prefix: /home/mbessdl2/.conda/envs/myenv
420420
```
421421

422-
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.
422+
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.
423423

424424
To create a higher-level record of the environment you can use:
425425

426426
```bash
427-
conda env export --from-history
427+
conda export --from-history
428428
```
429429

430430
```output
@@ -462,7 +462,7 @@ The name that you give the environment does not have to be the same as the name
462462
- `conda install -n <env> <pacakge(s)>` installs packages in a pre-existing environment
463463
- `conda activate <env>` activates the named environment, giving access to the software installed there
464464
- `conda deactivate` deactivates the current environment
465-
- `conda env export --from-history > <file.yml>` creates a portable record of your current environment
465+
- `conda export --from-history > <file.yml>` creates a portable record of your current environment
466466
- `conda env create --file <file.yml> <env>` creates a new environment from an environment file
467467

468468
::::::::::::::::::::::::::::::::::::::::::::::::::

0 commit comments

Comments
 (0)