mitsuhiko / pipsi

pip script installer
Other
2k stars 133 forks source link

Run pip via 'python -m pip' so it can upgrade itself #139

Closed pfmoore closed 6 years ago

pfmoore commented 6 years ago

On Windows, pip install --upgrade pip will fail, as it tries to replace the pip.exe executable used to run pip (and it can't because that file is in use).

This PR calls pip using the command python -m pip, which avoids the executable wrapper and so allows projects that have pip as a dependency (such as pipenv) to be managed by pipsi.

pfmoore commented 6 years ago

Can I do anything to help move this forward?

pfmoore commented 6 years ago

Thanks!