Create a virtual environment and update pip:
$ python3 -m venv .venv $ source .venv/bin/activate $ pip install -U pip