venv update
This commit is contained in:
+8
-8
@@ -1,21 +1,21 @@
|
|||||||
To create a new Virtual Environment (venv) run the following in the root folder of your project
|
To create a new Virtual Environment (venv) run the following in the root folder of your project
|
||||||
'''
|
```bash
|
||||||
% python3 -m venv venv
|
% python3 -m venv venv
|
||||||
'''
|
```
|
||||||
|
|
||||||
To activate the venv
|
To activate the venv
|
||||||
'''
|
```bash
|
||||||
% source venv/bin/activate
|
% source venv/bin/activate
|
||||||
'''
|
```
|
||||||
|
|
||||||
Your terminal should then look like this
|
Your terminal should then look like this
|
||||||
'''
|
```bash
|
||||||
% (venv) jonas@bendorama %
|
% (venv) jonas@bendorama %
|
||||||
'''
|
```
|
||||||
|
|
||||||
If it doesn't make sure you run the source command before working on your project.
|
If it doesn't make sure you run the source command before working on your project.
|
||||||
|
|
||||||
To deactivate the venv just run
|
To deactivate the venv just run
|
||||||
'''
|
```bash
|
||||||
% deactivate
|
% deactivate
|
||||||
'''
|
```
|
||||||
Reference in New Issue
Block a user