shell: refactoring _pip_install