So you’re having trouble installing python-rtmidi? There have been issues lately with that package. You could try this command-line instruction, which has been working for some people:
pip install git+https://github.com/SpotlightKid/python-rtmidi.git@eb16ab3268b29b94cd2baa6bfc777f5cf5f908ba#egg=python-rtmidi
Go to Tools->Open System shell in Thonny, and type that command. It installs a (hopefully) fixed version of python-rtmidi.
Another option is to export to midi file this way:
…and then load that in a DAW.