Fixed pip local install already_installed check
Added missing import