kristofer revisou este gist . Ir para a revisão
1 file changed, 1 insertion, 1 deletion
pyvenvs.md
@@ -7,7 +7,7 @@ How do I do that _virtual environment_ thing again? | |||
7 | 7 | # to create a venv | |
8 | 8 | python3 -m venv venv | |
9 | 9 | ||
10 | - | # to start it | |
10 | + | # to start/activate it | |
11 | 11 | source venv/bin/activate | |
12 | 12 | ``` | |
13 | 13 |
kristofer revisou este gist . Ir para a revisão
1 file changed, 12 insertions
pyvenvs.md
@@ -3,7 +3,11 @@ How do I do that _virtual environment_ thing again? | |||
3 | 3 | ### Create python virtual environment | |
4 | 4 | ||
5 | 5 | ```bash | |
6 | + | ||
7 | + | # to create a venv | |
6 | 8 | python3 -m venv venv | |
9 | + | ||
10 | + | # to start it | |
7 | 11 | source venv/bin/activate | |
8 | 12 | ``` | |
9 | 13 | ||
@@ -12,3 +16,11 @@ source venv/bin/activate | |||
12 | 16 | ```bash | |
13 | 17 | pip install -r requirements.txt | |
14 | 18 | ``` | |
19 | + | ||
20 | + | ### De-activate the Venv | |
21 | + | ||
22 | + | ```bash | |
23 | + | deactivate | |
24 | + | ``` | |
25 | + | ||
26 | + |
kristofer revisou este gist . Ir para a revisão
1 file changed, 14 insertions
pyvenvs.md(arquivo criado)
@@ -0,0 +1,14 @@ | |||
1 | + | How do I do that _virtual environment_ thing again? | |
2 | + | ||
3 | + | ### Create python virtual environment | |
4 | + | ||
5 | + | ```bash | |
6 | + | python3 -m venv venv | |
7 | + | source venv/bin/activate | |
8 | + | ``` | |
9 | + | ||
10 | + | ### Install dependencies | |
11 | + | ||
12 | + | ```bash | |
13 | + | pip install -r requirements.txt | |
14 | + | ``` |