how to install packages in python using pip on ubuntu code example Example 1: install pip ubuntu sudo apt install python3-pip Example 2: install pip ubuntu sudo apt update