Added a condition for excluding packages installed from pip