pip install yaml python code example Example: pip command to install yaml 5.1.2 pip install PyYAML==5.1.2