python3 -m pip install --upgrade pip :

export PATH="/usr/local/opt/python@3.12/bin:$PATH" :

Need help with a specific upgrade issue?