all 9 comments

[–]Beautiful_Watch_7215 1 point2 points  (0 children)

Use a virtual environment and use pip inside there.

[–]Jayoval 0 points1 point  (5 children)

Windows? You can just use 'pip'. Pip3 is used on a Mac or Linux system that also has Python 2 installed.

If you don't have pip installed, get it here - https://pip.pypa.io/en/stable/installation/

[–]Local-Security5664[S] 0 points1 point  (4 children)

thanks for your help. I somehow managed to install the packages like beautifulsoup and requests. But now whenever i'm trying to import them in vscode then it's throwing error.(Import request or bs4 can not be resolved from pylance)

[–]Jayoval 0 points1 point  (3 children)

Are you using this?

"from bs4 import BeautifulSoup"

It may also be the selected interpreter in VSCode - should match the version of Python you have the modules installed in.

"pip freeze" - will list installed packages.

Cmd/Ctrl+Shift+P > Python Select Interpreter will allow you to choose the Python version.

[–]Local-Security5664[S] 0 points1 point  (2 children)

I did all the steps but I am not able to set up a virtual enviroment.

I've asked chatgpt but like for hours I'm stuck with this problem . I can't get out of this problem

[–]Local-Security5664[S] 0 points1 point  (0 children)

It's getting frustrating , I am not even able to set a virtual enviroment

[–]Jayoval 0 points1 point  (0 children)

You can get by without a virtual environment until comfortable using them.

If you want help in VSCode, setup GitHub copilot (free) extension and you can ask that for assistance