brew install python3pip3 install --upgrade --user pipPrevious command might print a warning message to upgrade your pip version. Something like "You should consider upgrading via...". Use the command that is printed on your terminal. In my case, it is:
usr/local/opt/python@3.9/bin/python3.9 -m pip install --upgrade pipsudo python3 -m pip install jupyter