The logical answer, if I don't have a specific module is to just install it. pip install pyyaml
but I have installed it, and this just spits back "Requirement already satisfied: pyyaml in /usr/lib/python3.8/site-packages (5.3.1)
".
I got this issue while setting up Baxter for Gazebo.
PLUS INFO: I can import it for any other project, except this.