Skip to content

Commit b7a2728

Browse files
committed
make venv directions generic
1 parent 43fde64 commit b7a2728

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

content/how-tos/how-to-create-environments.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,16 @@ needed dependencies for a project.
2525
### Set up a virtual environment with venv
2626

2727
With venv to create environment associated with a project folder called `science`.
28+
First, navigate into the `science` project folder. Next, execute:
2829

2930
```shell
30-
python -m venv science
31+
python -m venv
3132
```
3233

3334
Start using it by activating it as follows:
3435

3536
```shell
36-
source science/bin/activate
37+
source .venv/bin/activate
3738
```
3839

3940
You are now ready to install Scientific Python packages using `pip`! For example:
@@ -53,7 +54,8 @@ pip install -r <path/to/requirements.txt>
5354
Remember to re-activate your environment every time you open a new terminal, using:
5455

5556
```shell
56-
source science/bin/activate
57+
cd <path/to/science/>
58+
source .venv/bin/activate
5759
```
5860

5961
You can find more information on using venv for packaging

0 commit comments

Comments
 (0)