modal-121 / 16 - Installation Roadmap /007 Solution Installed Library but not able to use on Pycharm_en.srt
Tan115's picture
Add files using upload-large-folder tool
b2df887 verified
Raw
History Blame
7 kB
1
00:00:00,000 --> 00:00:01,000
Welcome to the testing world.
2
00:00:03,000 --> 00:00:11,000
In this lecture, I'll show you how we can solve a problem in which we are installing a package at a
3
00:00:11,000 --> 00:00:11,000
library.
4
00:00:11,000 --> 00:00:16,000
But when we are going to use it on the jump, we are not able to locate it or we are not able to use
5
00:00:16,000 --> 00:00:16,000
it.
6
00:00:17,000 --> 00:00:22,000
I get a lot of questions from the student that they have installed liability, but when they try to
7
00:00:22,000 --> 00:00:25,000
use on the Buy.com, they are not able to use it.
8
00:00:25,000 --> 00:00:27,000
So now I'll show you how we can check it.
9
00:00:28,000 --> 00:00:31,000
So first of all, we are installing any package or library using pipe.
10
00:00:32,000 --> 00:00:32,000
OK.
11
00:00:32,000 --> 00:00:38,000
Once you install now, go to the pager and I want to check all the library, which we have installed
12
00:00:38,000 --> 00:00:39,000
reflected or not.
13
00:00:40,000 --> 00:00:43,000
So I'll have to go to the file settings.
14
00:00:44,000 --> 00:00:50,000
And here you will get Project Interpreter that comes under the project and the project name.
15
00:00:51,000 --> 00:00:58,000
OK, when you go to the project interpreter, there is a current interpreter we just sent in my project.
16
00:00:58,000 --> 00:01:05,000
So whatever the library you have installed, if it reflect over here means yes, whatever we have installed,
17
00:01:05,000 --> 00:01:06,000
we can use it now.
18
00:01:07,000 --> 00:01:09,000
But sometimes you will notice.
19
00:01:10,000 --> 00:01:17,000
Let me show you some times you will notice you are getting this means you are not getting library,
20
00:01:17,000 --> 00:01:18,000
which you have installed.
21
00:01:19,000 --> 00:01:23,000
OK, if you are not getting that library which you have installed, how we can solve this problem?
22
00:01:24,000 --> 00:01:29,000
OK, for solving this problem, I'll just go to this button.
23
00:01:29,000 --> 00:01:38,000
ED, go ahead and go for existing enrollment here, either.
24
00:01:38,000 --> 00:01:42,000
What all the python you have installed should be reflected here, but it's not reflecting.
25
00:01:42,000 --> 00:01:42,000
OK?
26
00:01:43,000 --> 00:01:48,000
Just click here and select your Python location.
27
00:01:48,000 --> 00:01:52,000
And I'm taking example when you have only one installation of the Python.
28
00:01:52,000 --> 00:01:59,000
So I'm in my case, Python is placed in my C drive and there we have Python.
29
00:01:59,000 --> 00:02:00,000
Not easy.
30
00:02:00,000 --> 00:02:03,000
So see Python three seven Python.
31
00:02:03,000 --> 00:02:04,000
Easy looking, OK?
32
00:02:05,000 --> 00:02:10,000
No, I'm saying don't use the current environment, which by default set on this project.
33
00:02:10,000 --> 00:02:12,000
Use this new enrollment.
34
00:02:13,000 --> 00:02:14,000
Click on OK.
35
00:02:15,000 --> 00:02:21,000
Apply as you apply all the liability which we have installed on the Python and then movement should
36
00:02:21,000 --> 00:02:22,000
be reflected here.
37
00:02:23,000 --> 00:02:28,000
Because when we're installing any library troop, it is installing on the base and measurement of the
38
00:02:28,000 --> 00:02:34,000
python, which is in my case, that is Python three seven C Python three seven by then.
39
00:02:35,000 --> 00:02:37,000
So now you'll get all these library, which you have installed.
40
00:02:38,000 --> 00:02:39,000
That is the first option.
41
00:02:39,000 --> 00:02:41,000
We can solve this problem by this approach.
42
00:02:42,000 --> 00:02:43,000
I'm just cancelling it.
43
00:02:44,000 --> 00:02:47,000
I'll show you the second option and the options, which I'm showing.
44
00:02:47,000 --> 00:02:49,000
It is not related to the Python programming.
45
00:02:49,000 --> 00:02:55,000
Only if you're working with the Python only Python or if you are working with us leading with Python
46
00:02:55,000 --> 00:02:59,000
a bit testing in Python or you are using the robot framework with Python.
47
00:02:59,000 --> 00:03:02,000
So wherever you are using it, you can follow this approach.
48
00:03:03,000 --> 00:03:05,000
No, I've shown you the first solution of it.
49
00:03:06,000 --> 00:03:07,000
Now I'll show you the second solution.
50
00:03:08,000 --> 00:03:16,000
Second solution is that check here in your project if you get this the EMV by default, that is your
51
00:03:16,000 --> 00:03:16,000
current involvement.
52
00:03:17,000 --> 00:03:18,000
I showed you here.
53
00:03:18,000 --> 00:03:19,000
Let me show you.
54
00:03:20,000 --> 00:03:25,000
And it was showing the current environment, and I'm just taking example.
55
00:03:25,000 --> 00:03:27,000
It is showing this is my current environment.
56
00:03:28,000 --> 00:03:30,000
If you check it, the but it shows my project.
57
00:03:30,000 --> 00:03:34,000
But here we have the enrollment script Python.
58
00:03:35,000 --> 00:03:40,000
So I would see that is my current involvement and first approach.
59
00:03:40,000 --> 00:03:46,000
I assure you, you can change from here like you could add bit interpreter means present moment for
60
00:03:46,000 --> 00:03:47,000
this project.
61
00:03:47,000 --> 00:03:54,000
Second approach is that deep, this involvement just grows it here in a vision.
62
00:03:54,000 --> 00:04:00,000
If you're getting this folder, go to the script for to copy it, but so just copy it.
63
00:04:01,000 --> 00:04:02,000
Now go to the command prompt.
64
00:04:03,000 --> 00:04:08,000
So I'll just open command prompt city and move to that location.
65
00:04:09,000 --> 00:04:15,000
Now use PIP, Install and whatever that library you want to install.
66
00:04:16,000 --> 00:04:17,000
So I'm just installing it.
67
00:04:19,000 --> 00:04:22,000
So now you're installing this library for this project only.
68
00:04:23,000 --> 00:04:24,000
So what was the project you are working on?
69
00:04:25,000 --> 00:04:27,000
It will download and install the library for this project.
70
00:04:28,000 --> 00:04:34,000
So this involvement we are setting for the project specific, if you want to use library and all that
71
00:04:34,000 --> 00:04:40,000
and all the projects always go and select base interpreter, which I've shown you previously.
72
00:04:40,000 --> 00:04:43,000
So now it will download and install the celebrity.
73
00:04:43,000 --> 00:04:44,000
So it is collecting selenium.
74
00:04:46,000 --> 00:04:48,000
Now downloading and storing it.
75
00:04:49,000 --> 00:04:55,000
So here I am showing you two solutions by which we can solve this problem in which we haven't started,
76
00:04:55,000 --> 00:04:55,000
I believe.
77
00:04:56,000 --> 00:04:58,000
But in my project, I'm not able to use it.
78
00:04:59,000 --> 00:05:00,000
That's all we have.
79
00:05:00,000 --> 00:05:01,000
Thanks for watching this with you.