install pip3 requests code example Example 1: install requests python pip install requests Example 2: install requests python $ python -m pip install requests