Skip to content

Commit f80b0ba

Browse files
Merge pull request #35 from psobolewskiPhD/req_txt
Add and mention requirements.txt
2 parents 440e3e2 + 94f51b6 commit f80b0ba

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

conda.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,14 @@
125125
This will create a new environment named `bestpractices_final` with
126126
all the packages specified in the *environment.yml* file.
127127
Activating the new environment as before, using `conda activate bestpractices_final` (why is this the name?) and try running `python --version`. Try running `conda list` to see all the installed
128-
packages. Everything listed at environment.yml should be there, along with all
129-
dependencies.
128+
packages. Everything listed in the `environment.yml` should be there, along with all
129+
dependencies.
130+
Note: The `pip` equivalent, *once you have an activated virtual environment with a Python interpreter*, is:
131+
132+
```bash
133+
pip install -r requirements.txt
134+
```
135+
This will install all packages listed in a `requirements.txt` file from PyPI.
130136
131137
6. A final tip: append `--dry-run` to your `conda` commands to see what they will do without actually making any changes.
132138

requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
numpy
2+
pytest
3+
coverage
4+
ruff

0 commit comments

Comments
 (0)