pip install --target code example Example: how to pip install in folder pip install --target=d:\somewhere\other\than\the\default package_name