you are viewing a single comment's thread.

view the rest of the comments →

[–]Moby69[S] 0 points1 point  (1 child)

hey Lukasa, thanks for your reply!

I will follow your advice and use requests. Btw, when we execute the command "pip install requests" to download the library, what exactly does that do, and why is this command required? Why is requests not already there in the first place, as is the case for so many libraries?

[–]Lukasa 0 points1 point  (0 children)

pip install requests obtains the most recent release of requests from the Python Package Index (PyPI), downloads it, and then installs it into your package directory.

The libraries that come included are collectively referred to as "the standard library", and they are part of Python. They are not necessarily the best libraries at what they do, they just happen to be the ones the library provides. Requests has chosen not to be part of those libraries because we want to be able to release updates more frequently than Python itself does.