How to Force pip Not to Install Existing Packages | pip Install Skip if Already Installed

Try using the --ignore-installed flag

$pip install --ignore-installed PyYAML