M pip install upgrade pip command. Python3 -m pip install --upgrade pip python3 -m pip install --upgrade pillow.