Install latest 23.x version of PIP3

curl -O  https://bootstrap.pypa.io/get-pip.py
python3 get-pip.py

On Debian systems you’ll want to add ~/.local/bin to your path so latest PIP3 will be picked up.

On OSX you’ll want to add ~/Library/Python/lib to your path