This is the first video of the revision series.
In this video, we will focus on posture.
This video is important, actually, because throughout the course you will be opening and closing parts
from you will be creating new projects.
And sometimes you might have problems with the virtual environment with the Python interpreter.
So in this video, I want to cover those possible problems so that it can save you some frustration.
So let's say you have an existing python window open and you want to create a new project.
So you go to file a new project.
You pick a directory where you want to save your project or create a new folder if you don't have one,
for example, revision.
So in this folder, I'm going to put all the files that I'll be showing you today.
So then normally you press on new environment.
Choose an interpreter, for example 3.11 and press on create.
This might ask you if you want.
To open a new window or override this existing pattern window.
You can override this if you want to close that existing window.
And so this will be your new partition.
Project.
Now to make sure that everything is working fine.
You might want to check the terminal.
And if when fear is displayed before this part, that means the virtual environment is activated and
you can begin.
Installing packages here, if you like, or you can install packages from the Python packages.
Section in here in Punjab.
But always make sure that is displayed here.
What happens sometimes is that.
After you close this project and you reopen it again using file open.
So let's say we open this.
Project again, which is in here.
Revision.
You open it again.
Sometimes what happens is that.
You might get a message here which says that the virtual environment has a problem.
In that case, what you want to do is you want to go to.
The settings of Parcham.
Which can be named settings or preferences.
They can be in part charm or inside the file menu, or you can use the shortcut command, comma or control
comma.
So in settings, see if you have that problem with the virtual environment.
You have to go to project and then to interpreter in here and then go in here and then go to add.
So you want to access this window again, right?
A then.
You might first try to go to the existing environment and then go to this and there you might want to
press.
Okay, So that will select this one folder, right?
That should fix the issue.
If that doesn't fix the issue, then you might want to add a new virtual environment with that button.
But first you want to delete that folder, that event folder, so you can delete that or remove it entirely
from your project directory and then go back to the interpreter.
Go here, press on, ADD and select new environment so that will create a new vent folder.
Press Okay.
Okay.
Here again.
And then you should be able to see then here in the terminal.
And then carry on with installing packages and also, of course, creating new Python files and start
coding.
So that's a review on Pancham and that was also super help in case you get this issue.
And it happens quite often with virtual environments in part charm.
So please keep this in mind and let's move on to the next video.
Thanks.