how to install with pip 3 code example Example 1: install pip3 sudo apt install python3-pip Example 2: how to install pip python -m ensurepip