1
00:00:00,000 --> 00:00:10,880
For Linux+, you also need to know about Python, because Python is one of the main scripting

2
00:00:10,880 --> 00:00:14,480
languages in Linux, and it is behind many applications.

3
00:00:14,480 --> 00:00:20,320
A Python virtual environment is an isolated workspace that can be used for each project,

4
00:00:20,320 --> 00:00:23,879
to make sure that these projects have its own dependencies.

5
00:00:23,879 --> 00:00:28,480
So installed packages don't conflict with generic system Python, and also not with each

6
00:00:28,480 --> 00:00:29,780
other.

7
00:00:29,780 --> 00:00:34,740
You can use it to avoid conflicts between projects and to keep your environment clean.

8
00:00:34,740 --> 00:00:37,220
To set it up, use the following.

9
00:00:37,220 --> 00:00:41,340
Start by creating a directory, as in mkdir myvnv.

10
00:00:41,340 --> 00:00:46,680
Then you use cd myvnv to change directory into the virtual environment.

11
00:00:46,680 --> 00:00:53,419
And then you can use command python3-mvnvnv, which will open the virtual environment.

12
00:00:53,419 --> 00:00:59,340
And the final step is where you are going to source the command vnv slash bin slash

13
00:00:59,340 --> 00:01:00,340
activate.

14
00:01:00,340 --> 00:01:05,019
That will activate the virtual environment, and you will be there until you exit the virtual

15
00:01:05,019 --> 00:01:05,660
environment.

