I\'m trying out downloading PyYAML and install it following the instructions here http://pyyaml.org/wiki/PyYAML
So I downloaded the ZIP package: http://pyyaml.org/downlo
In MacOS the following solved the problem:
MacOS
pip3 uninstall PyYaml pip3 install PyYaml==5.2