Getting Started · Lesson 16 of 76
Packages and pip
Python comes with a lot built in, but the real power is packages — bundles of code other people wrote that you can reuse. For example requests for the web, or pandas for data.
You install packages with pip, Python's package installer, from your terminal:
pip install requests
Then you can import and use them in your code:
import requests
response = requests.get("https://example.com")
print(response.status_code)
(That web example needs a real machine with internet, so it won't run in the browser box — but the idea is: install once with pip, then import and use.)
You’re reading for free. Sign in to keep your progress and earn a certificate when you finish.Sign in to keep my progress →