File tree 1 file changed +5
-3
lines changed 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -25,15 +25,16 @@ needed dependencies for a project.
25
25
### Set up a virtual environment with venv
26
26
27
27
With venv to create environment associated with a project folder called ` science ` .
28
+ First, navigate into the ` science ` project folder. Next, execute:
28
29
29
30
``` shell
30
- python -m venv science
31
+ python -m venv
31
32
```
32
33
33
34
Start using it by activating it as follows:
34
35
35
36
``` shell
36
- source science /bin/activate
37
+ source .venv /bin/activate
37
38
```
38
39
39
40
You are now ready to install Scientific Python packages using ` pip ` ! For example:
@@ -53,7 +54,8 @@ pip install -r <path/to/requirements.txt>
53
54
Remember to re-activate your environment every time you open a new terminal, using:
54
55
55
56
``` shell
56
- source science/bin/activate
57
+ cd < path/to/science/>
58
+ source .venv/bin/activate
57
59
```
58
60
59
61
You can find more information on using venv for packaging
You can’t perform that action at this time.
0 commit comments