How to install wxPython under an alternative python version?

Use the following command to install wxpython on Ubuntu 20.04:

python3 -m pip install -U -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-20.04 wxPython