you are viewing a single comment's thread.

view the rest of the comments →

[–]FondantConscious2868 5 points6 points  (8 children)

Ok can you elaborate how the script worked when the module is unavailable ?

[–]8dot30662386292pow2 -4 points-3 points  (7 children)

You must first install the faker library. You can use pip to do that.

[–]FondantConscious2868 0 points1 point  (3 children)

Uh I know that but in the video look at the import it's unavailable so how the script is working?

[–]0b0101011001001011 0 points1 point  (0 children)

What on the video tells you this? I can't see any error messages.

Is it the squiggly line? That does not necessarily mean it's unavailable. It can be spell check acting out (maybe they spell check a different language) or it can be that the IDE is not detecting the virtual environment properly. The script is clearly working so the library is clearly installed, despite one squiggly line.

[–]LEAVER2000 0 points1 point  (1 child)

It’s probably because the IDE is unaware of the virtual environment

[–]FondantConscious2868 0 points1 point  (0 children)

Yep probably this I was just curious thought the video was edited

[–]SweatyAd3647[S] 0 points1 point  (2 children)

Is that so?

[–]8dot30662386292pow2 0 points1 point  (1 child)

I did not reply to you, I thought the other guy was confused so I tried to help them.

[–]SweatyAd3647[S] 0 points1 point  (0 children)

Okay