1
00:00:01,080 --> 00:00:03,660
This is the first video of the revision series.

2
00:00:03,780 --> 00:00:06,300
In this video, we will focus on posture.

3
00:00:07,820 --> 00:00:15,080
This video is important, actually, because throughout the course you will be opening and closing parts

4
00:00:15,080 --> 00:00:17,600
from you will be creating new projects.

5
00:00:17,600 --> 00:00:23,270
And sometimes you might have problems with the virtual environment with the Python interpreter.

6
00:00:23,480 --> 00:00:30,170
So in this video, I want to cover those possible problems so that it can save you some frustration.

7
00:00:30,350 --> 00:00:36,130
So let's say you have an existing python window open and you want to create a new project.

8
00:00:36,140 --> 00:00:38,240
So you go to file a new project.

9
00:00:41,700 --> 00:00:47,520
You pick a directory where you want to save your project or create a new folder if you don't have one,

10
00:00:47,520 --> 00:00:49,740
for example, revision.

11
00:00:50,430 --> 00:00:56,070
So in this folder, I'm going to put all the files that I'll be showing you today.

12
00:00:58,370 --> 00:01:01,250
So then normally you press on new environment.

13
00:01:03,800 --> 00:01:07,730
Choose an interpreter, for example 3.11 and press on create.

14
00:01:08,630 --> 00:01:10,490
This might ask you if you want.

15
00:01:12,040 --> 00:01:15,670
To open a new window or override this existing pattern window.

16
00:01:15,700 --> 00:01:19,150
You can override this if you want to close that existing window.

17
00:01:19,300 --> 00:01:21,760
And so this will be your new partition.

18
00:01:23,490 --> 00:01:24,420
Project.

19
00:01:26,070 --> 00:01:28,950
Now to make sure that everything is working fine.

20
00:01:29,970 --> 00:01:31,920
You might want to check the terminal.

21
00:01:31,920 --> 00:01:40,620
And if when fear is displayed before this part, that means the virtual environment is activated and

22
00:01:40,620 --> 00:01:41,610
you can begin.

23
00:01:44,500 --> 00:01:51,250
Installing packages here, if you like, or you can install packages from the Python packages.

24
00:01:52,450 --> 00:01:54,370
Section in here in Punjab.

25
00:01:56,140 --> 00:01:58,930
But always make sure that is displayed here.

26
00:01:58,960 --> 00:02:00,940
What happens sometimes is that.

27
00:02:02,810 --> 00:02:07,880
After you close this project and you reopen it again using file open.

28
00:02:08,210 --> 00:02:10,160
So let's say we open this.

29
00:02:11,530 --> 00:02:15,120
Project again, which is in here.

30
00:02:15,200 --> 00:02:16,090
Revision.

31
00:02:16,120 --> 00:02:17,230
You open it again.

32
00:02:18,310 --> 00:02:20,680
Sometimes what happens is that.

33
00:02:21,620 --> 00:02:26,360
You might get a message here which says that the virtual environment has a problem.

34
00:02:26,360 --> 00:02:31,220
In that case, what you want to do is you want to go to.

35
00:02:32,860 --> 00:02:35,020
The settings of Parcham.

36
00:02:36,110 --> 00:02:39,470
Which can be named settings or preferences.

37
00:02:40,290 --> 00:02:48,510
They can be in part charm or inside the file menu, or you can use the shortcut command, comma or control

38
00:02:48,510 --> 00:02:49,050
comma.

39
00:02:50,460 --> 00:02:54,750
So in settings, see if you have that problem with the virtual environment.

40
00:02:56,490 --> 00:03:04,590
You have to go to project and then to interpreter in here and then go in here and then go to add.

41
00:03:04,740 --> 00:03:08,010
So you want to access this window again, right?

42
00:03:09,730 --> 00:03:10,480
A then.

43
00:03:12,320 --> 00:03:19,220
You might first try to go to the existing environment and then go to this and there you might want to

44
00:03:19,220 --> 00:03:19,580
press.

45
00:03:19,580 --> 00:03:24,980
Okay, So that will select this one folder, right?

46
00:03:27,350 --> 00:03:28,610
That should fix the issue.

47
00:03:30,420 --> 00:03:37,890
If that doesn't fix the issue, then you might want to add a new virtual environment with that button.

48
00:03:37,890 --> 00:03:45,960
But first you want to delete that folder, that event folder, so you can delete that or remove it entirely

49
00:03:45,960 --> 00:03:50,460
from your project directory and then go back to the interpreter.

50
00:03:50,490 --> 00:03:56,800
Go here, press on, ADD and select new environment so that will create a new vent folder.

51
00:03:56,820 --> 00:03:57,870
Press Okay.

52
00:03:57,990 --> 00:03:58,560
Okay.

53
00:03:58,590 --> 00:03:59,460
Here again.

54
00:03:59,670 --> 00:04:04,320
And then you should be able to see then here in the terminal.

55
00:04:06,100 --> 00:04:13,060
And then carry on with installing packages and also, of course, creating new Python files and start

56
00:04:13,060 --> 00:04:13,660
coding.

57
00:04:13,990 --> 00:04:21,880
So that's a review on Pancham and that was also super help in case you get this issue.

58
00:04:21,880 --> 00:04:25,980
And it happens quite often with virtual environments in part charm.

59
00:04:25,990 --> 00:04:30,520
So please keep this in mind and let's move on to the next video.

60
00:04:30,640 --> 00:04:31,210
Thanks.

