githubEdit

Python Third Party Modules

Learn how to install and use third-party packages from PyPI.

Third-party modules are not included in the standard library. You install them with pip, then import them like any other module.

Install

pip install requests

Use

import requests

response = requests.get("https://example.com")
print(response.status_code)

Best Practice

Use a virtual environment to isolate project dependencies.

Next | Previous

Last updated