-
-
Notifications
You must be signed in to change notification settings - Fork 628
Open
Description
When running pip-sync
against a requirements.txt which includes a different version of pip-tools itself, it tries to remove it, which causes an OSError.
Environment Versions
- OS version:
Windows 10
- Python version:
3.12.5
- pip version:
24.2 (venv)
and25.2 (machine)
- pip-tools version:
7.5.0
Steps to replicate
- Delete
.venv
and recreate it - Install
pip-tools
in the new venv manually usingpip install pip-tools
(this will install version 7.5.0) - Run
pip-sync
against a requirements.txt which pinspip-tools
to 7.4.1
Expected result
pip-sync
does not modify packaging tools like itself and simply skips pip-tools
unless it's not installed
Actual result
pip-sync
tries to uninstall itself and hence tries removing the executable it's running from causing an OSError
Metadata
Metadata
Assignees
Labels
No labels