How do I use the VS Code terminal command 'pip install requests' to install the requests library?

16 Replies, 1885 Views

Thanks so much, everyone! I tried the `pip show requests` and `import requests` in a script, and it worked! I also set up a virtual env using `python -m venv myenv` like someone suggested, and it’s way cleaner.

One follow-up: how do I make sure the virtual env is always active when I open VS Code? Right now, I have to manually activate it every time. Any tips?

Thanks again—y’all are the best!

Messages In This Thread



Users browsing this thread: 1 Guest(s)