22 lines
413 B
Markdown
22 lines
413 B
Markdown
To create a new Virtual Environment (venv) run the following in the root folder of your project
|
|
```bash
|
|
% python3 -m venv venv
|
|
```
|
|
|
|
To activate the venv
|
|
```bash
|
|
% source venv/bin/activate
|
|
```
|
|
|
|
Your terminal should then look like this
|
|
```bash
|
|
(venv) jonas@bendorama %
|
|
```
|
|
|
|
If it doesn't make sure you run the source command before working on your project.
|
|
|
|
To deactivate the venv just run
|
|
```bash
|
|
% deactivate
|
|
```
|